/* Main CSS file for dating site - Enhanced UI */

:root {
    --primary-color: #1D4ED8; /* Default color, will be overridden by PHP */
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-color: #f9fafb;
    --dark-color: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #9ca3af;
    --gradient-primary: linear-gradient(135deg, #1D4ED8 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-hero: linear-gradient(135deg, #1D4ED8 0%, #3b82f6 50%, #8b5cf6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-full: 9999px;
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Enhanced Typography */
html {
    overflow-y: scroll; /* Always show scrollbar to prevent content jump */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    font-feature-settings: 'kern' 1, 'liga' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent body content from causing horizontal scroll */
}

/* Enhanced Hero Section */
.hero-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Enhanced Search Bar */
.search-container {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-normal);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-container:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-container:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 12px 40px rgba(0, 0, 0, 0.15);
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    color: white;
}

.search-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.search-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

.bg-primary { background-color: var(--primary-color); }
.hover\:bg-primary:hover { background-color: var(--primary-color); }
.text-primary { color: var(--primary-color); }
.border-primary { border-color: var(--primary-color); }

/* Ad Listing Images Fix */
.ad-list.image-resize {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Enhanced City Cards */
.city-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.3) 0%, rgba(59, 130, 246, 0.5) 100%);
    transition: all var(--transition-normal);
    z-index: 1;
}

.city-card:hover::before {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.2) 0%, rgba(59, 130, 246, 0.4) 100%);
}

.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.city-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.city-card:hover img {
    transform: scale(1.1);
}

.city-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

/* Enhanced Category Buttons */
.category-button {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left var(--transition-slow);
}

.category-button:hover::before {
    left: 100%;
}

.category-button:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.category-button:active {
    transform: translateY(0);
}

/* Enhanced Promotion Section */
.promotion-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.promotion-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.promotion-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    line-height: 1.1;
}

.promotion-button {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    border: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
    position: relative;
    overflow: hidden;
}

.promotion-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.promotion-button:hover::before {
    opacity: 1;
}

.promotion-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.4);
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.rich-text-toolbar button {
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.rich-text-toolbar button:hover {
    background-color: #e5e7eb;
}

@media (max-width: 639px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    /* Ensure no conflicting overflow-hidden from other rules */
    overflow-y: auto; 
}

.promote-cards-container {
    position: relative;
    width: 100%;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.promote-card {
    position: absolute;
    width: 220px;
    height: 320px;
    border-radius: 1rem;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, z-index 0s 0.2s;
    border: 4px solid;
}

.promote-card:hover {
    transform: translateY(-15px) scale(1.05) rotate(0deg) !important;
    z-index: 10 !important;
    transition: transform 0.4s ease, z-index 0s;
}

.promote-card .label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.promote-card-1 {
    background-image: url('../assests/p.jpeg');
    transform: rotate(-12deg) translateX(-50px);
    z-index: 2;
    border-color: #3b82f6;
}
.promote-card-1 .label {
    background-color: #3b82f6;
}

.promote-card-2 {
    background-image: url('../assests/p1.jpg');
    transform: rotate(4deg);
    z-index: 3;
    border-color: #ec4899;
}
.promote-card-2 .label {
    background-color: #ec4899;
}

.promote-card-3 {
    background-image: url('../assests/p2.jpg');
    transform: rotate(14deg) translateX(50px);
    z-index: 2;
    border-color: #8b5cf6;
}
.promote-card-3 .label {
    background-color: #8b5cf6;
}

.card-1 {
    background-image: url('../assests/p.jpeg');
}

.card-2 {
    background-image: url('../assests/p1.jpg');
}

.card-3 {
    background-image: url('../assests/p2.jpg');
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

.gallery-main {
    height: 500px;
    object-fit: cover;
    border-radius: 0.75rem 0.75rem 0 0;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.gallery-thumb:hover, 
.gallery-thumb.active {
    transform: scale(1.05);
    border-color: #6366f1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.detail-card {
    background: rgb(0, 0, 0);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

.contact-btn i {
    margin-right: 8px;
}

.call-btn {
    background-color: #8b5cf6;
    color: white;
}

.call-btn:hover {
    background-color: #7c3aed;
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-item:last-child {
    border-bottom: none;
}

.document-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 1/1;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.boost-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}

.primary-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.ad-meta {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e5e7eb;
}

.meta-item {
    display: flex;
    margin-bottom: 0.75rem;
}

.meta-label {
    font-weight: 600;
    min-width: 120px;
    color: #6b7280;
}

/* Analytics Cards */
.analytics-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.analytics-card-icon {
    background-color: #eff6ff;
    border-radius: 9999px;
    padding: 0.75rem;
    margin-right: 1rem;
}

.analytics-card-icon i {
    color: #3b82f6;
    font-size: 1.25rem;
}

/* Table styles from login_migration.php */
table {
    border-collapse: collapse;
    margin: 20px 0;
}

td, th {
    padding: 8px;
    border: 1px solid #ddd;
}

/* Video/selfie styles from kycform.php */
#videoElement, #canvasElement, #selfieImage {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
    display: block;
    object-fit: cover;
    border: 2px solid #ddd;
}

/* Sidebar styles from admin.php */
.sidebar {
    transition: all 0.3s;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Profile Page Styles */
.profile-header {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 5rem;
    height: 5rem;
    background: #3b82f6;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.875rem;
    font-weight: bold;
}

.profile-button {
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.profile-button-primary {
    background: #3b82f6;
    color: white;
}

.profile-button-primary:hover {
    background: #2563eb;
}

.profile-button-secondary {
    background: #4b5563;
    color: white;
}

.profile-button-secondary:hover {
    background: #374151;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-approved {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef9c3;
    color: #854d0e;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.action-button {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}

.action-edit {
    background: #dbeafe;
    color: #1d4ed8;
}

.action-delete {
    background: #fee2e2;
    color: #dc2626;
}

.action-boost {
background: #ede9fe;
color: #7c3aed;
}

/* Add your custom CSS here */
.image-resize {
width: 100%;
height: 100%;
object-fit: contain;
display: block;
margin: 0 auto;
}

button, .btn {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
transform: translateY(0);
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Enhanced search bar */
.search-container {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.search-container:hover {
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Modern input fields */
input[type="text"], 
input[type="email"], 
input[type="password"] {
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus {
    background: rgba(255,255,255,0.2);
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.3);
}

/* Smooth animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive improvements */
@media (max-width: 1023px) {
    .card-container .image-card {
        width: 150px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .flex-col-mobile {
        flex-direction: column;
    }
    
    .text-center-mobile {
        text-align: center;
    }
    
    .w-full-mobile {
        width: 100%;
    }
}

.curved-arrow {
    pointer-events: none;
    z-index: 0;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Age Warning Modal Styles */
#ageWarningModal {
    backdrop-filter: blur(4px);
}

.age-modal-content {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2.5rem;
    max-width: 480px;
}

.age-modal-icon {
    background-color: #8b5cf6; /* A nice purple */
    width: 6rem;
    height: 6rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 10px rgba(139, 92, 246, 0.2);
}

.age-modal-button-accept {
    background-color: #8b5cf6;
    color: white;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.age-modal-button-accept:hover {
    background-color: #7c3aed;
    transform: translateY(-2px);
}

.age-modal-button-decline {
    background-color: #e5e7eb;
    color: #4b5563;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.age-modal-button-decline:hover {
    background-color: #d1d5db;
    transform: translateY(-2px);
}

/* Enhanced Boost Section */
.boost-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.boost-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.boost-title {
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.boost-highlight {
    color: #60a5fa;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.gauge-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.gauge-svg {
    width: 120px;
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.boost-button {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-lg);
    border: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.boost-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(29, 78, 216, 0.1), transparent);
    transition: left var(--transition-slow);
}

.boost-button:hover::before {
    left: 100%;
}

.boost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Enhanced Footer */
.footer-section {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width var(--transition-normal);
}

.footer-link:hover {
    color: white;
    transform: translateX(4px);
}

.footer-link:hover::after {
    width: 100%;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--transition-normal);
    backdrop-filter: blur(8px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.newsletter-button {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    border: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.newsletter-button:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.4);
}

/* Enhanced Responsive Design */
@media (max-width: 1280px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .search-container {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .city-card-title {
        font-size: 1.25rem;
        padding: 1rem;
    }
    
    .category-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .search-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .search-input {
        padding: 1rem;
        text-align: center;
    }
    
    .search-button {
        width: 100%;
        padding: 1rem;
        border-radius: var(--border-radius-lg);
    }
    
    .city-card {
        aspect-ratio: 3/2;
    }
    
    .category-button {
        width: 100%;
        text-align: center;
    }
    
    .promotion-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .boost-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .image-card {
        width: 160px;
        height: 240px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .city-card-title {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .promotion-title {
        font-size: 1.75rem;
    }
    
    .boost-title {
        font-size: 1.75rem;
    }
    
    .image-card {
        width: 140px;
        height: 200px;
        margin: 5px;
    }
    
    .gauge-svg {
        width: 100px;
        height: 50px;
    }
}

/* Focus States for Accessibility */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .search-container {
        border-width: 2px;
    }
    
    .city-card::before {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .category-button {
        border-width: 2px;
        border-color: var(--primary-color);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading Animation */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
