/* style.css */
/* =============================================================================
   MAIN STYLES FOR FORTUNE4U JEWELLERS
   ============================================================================= */

/* Kerala Districts Section Styles */
.kerala-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.kerala-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%230d6efd" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    z-index: 0;
}

.district-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
    height: 100%;
}

.district-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.district-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.district-card:hover .district-icon {
    transform: scale(1.2);
}

.district-name {
    color: #212529;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.district-subtitle {
    color: #6c757d;
    font-size: 0.85rem;
}

.district-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    border-radius: 2px;
}

.kerala-map-bg {
    position: absolute;
    bottom: -50px;
    right: -50px;
    opacity: 0.05;
    width: 300px;
    height: 300px;
    z-index: 0;
}

.district-count {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Color variations for district icons */
.color-1 { color: #0d6efd; }
.color-2 { color: #198754; }
.color-3 { color: #ffc107; }
.color-4 { color: #dc3545; }
.color-5 { color: #6f42c1; }
.color-6 { color: #fd7e14; }
.color-7 { color: #20c997; }
.color-8 { color: #e83e8c; }
.color-9 { color: #6610f2; }
.color-10 { color: #0dcaf0; }
.color-11 { color: #198754; }
.color-12 { color: #fd7e14; }
.color-13 { color: #6f42c1; }
.color-14 { color: #e83e8c; }

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Gallery Styles */
.gallery-item:hover .overlay {
    opacity: 1 !important;
}

.transition {
    transition: opacity 0.3s ease;
}

/* Add this to your style.css */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.navbar-collapse {
    max-width: 100%;
}

/* Update Button Styles */
.update-btn {
    position: relative;
    overflow: hidden;
}

.update-btn .spinner-border {
    display: none;
}

.update-btn.updating .spinner-border {
    display: inline-block;
}

.update-btn.updating .btn-text {
    display: none;
}

/* Body and Section Padding */
body {
    padding-top: 30px;
}

/* Reduced Padding for All Sections */
section {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Specific adjustments for sections that need different padding */
#hero {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

#gallery {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

footer {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Reduce margins for headings */
.text-center.mb-5 {
    margin-bottom: 1rem !important;
}

.display-5.fw-bold {
    margin-bottom: 1rem !important;
}

/* Reduce card padding */
.card-body {
    padding: 1rem !important;
}

/* Mobile Menu Fixes */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
        background: #343a40;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.375rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 0.375rem;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Ensure proper viewport behavior */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .district-icon {
        font-size: 2rem;
    }
    
    .district-name {
        font-size: 1rem;
    }
    
    .kerala-map-bg {
        width: 200px;
        height: 200px;
    }
    
    section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    #hero, #gallery {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

/* style.css - Calculator Specific Styles */
/* style.css - Calculator Specific Styles */

/* Gold Calculator Styles - White Cards */
.calculator-card {
    background: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.result-card {
    background: white;
    border: none;
    border-radius: 15px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.calculator-card .card-body,
.result-card .card-body {
    color: #333;
}

.gold-rate-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    font-weight: bold;
}

.form-control:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.btn-gold {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    color: #000;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Calculator Header Styling */
.calculator-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.result-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

/* Calculator specific responsive adjustments */
@media (max-width: 768px) {
    .calculator-card .card-body {
        padding: 0.5rem !important;
    }
    
    .result-card .card-body {
        padding: 0.5rem !important;
    }
    
    .btn-gold {
        padding: 0.75rem 1rem;
    }
}

/* Mobile Menu Fixes - Enhanced */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
        background: #343a40;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        border: 1px solid #495057;
    }
    
    .navbar-nav {
        text-align: left;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
        border-bottom: 1px solid #495057;
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
        transition: all 0.3s ease;
        color: #f8f9fa !important;
        font-weight: 500;
        display: block;
        width: 100%;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: #495057;
        color: #ffffff !important;
        transform: translateX(5px);
    }
    
    .navbar-nav .nav-link.active {
        background-color: #0d6efd;
        color: #ffffff !important;
    }
    
    /* Ensure navbar doesn't overflow */
    .navbar {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure proper viewport behavior */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 35px !important;
    }
    
    body {
        padding-top: 30px;
    }
}






/* Prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Smooth transitions for mobile menu */
.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

/* Google Translate Widget Styles */
#google_translate_element {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

/* Hide Google's default banner */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Style the language selector */
.goog-te-gadget {
    font-family: inherit !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    padding: 0.5!important;
}

.goog-te-menu-value span {
    color: #333 !important;
}

.goog-te-menu-value {
    color: #333 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #google_translate_element {
        position: fixed;
        bottom: 20px;
        top: auto;
        right: 20px;
        transform: none;
        border-radius: 10px;
    }
}
