/* =====================================================
   GoLove AI - Responsive Fixes & Footer Improvements
   ===================================================== */

/* =====================================================
   IMPROVED FOOTER LAYOUT
   ===================================================== */

.footer {
    background: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    text-align: center;
}

.footer-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    text-decoration: none;
}

.footer-brand .logo img {
    height: 40px;
    width: auto;
}

.footer-brand .logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.footer-brand > p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links {
    text-align: center;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-cta {
    text-align: center;
    background: rgba(255, 77, 141, 0.08);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 77, 141, 0.15);
}

.footer-cta h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.footer-cta p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.footer-cta .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.affiliate-disclosure {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.affiliate-disclosure i {
    margin-right: 5px;
}

/* =====================================================
   TABLET FOOTER (768px+)
   ===================================================== */
@media (min-width: 768px) {
    .footer {
        padding: 70px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
        text-align: left;
    }
    
    .footer-brand {
        text-align: left;
        grid-column: 1 / -1;
    }
    
    .footer-brand > p {
        margin-left: 0;
        margin-right: 0;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-links {
        text-align: left;
    }
    
    .footer-links a:hover {
        transform: translateX(5px);
    }
    
    .footer-cta {
        text-align: left;
        grid-column: 1 / -1;
    }
}

/* =====================================================
   DESKTOP FOOTER (1024px+)
   ===================================================== */
@media (min-width: 1024px) {
    .footer {
        padding: 80px 0 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: auto;
    }
    
    .footer-cta {
        grid-column: auto;
    }
}

/* =====================================================
   IMPROVED MOBILE NAVIGATION
   ===================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar .logo img {
    height: 36px;
    width: auto;
}

.navbar .logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 77, 141, 0.15);
}

.nav-cta {
    display: none;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.mobile-menu a:hover {
    background: rgba(255, 77, 141, 0.15);
    border-color: rgba(255, 77, 141, 0.3);
}

.mobile-menu .btn {
    margin-top: 20px;
    text-align: center;
    justify-content: center;
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .navbar .logo img {
        height: 40px;
    }
    
    .navbar .logo span {
        font-size: 1.3rem;
    }
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    
    .nav-cta {
        display: inline-flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-menu {
        display: none;
    }
}

/* =====================================================
   IMPROVED BUTTONS
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 77, 141, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 77, 141, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* =====================================================
   FLOATING GIFT BUTTON IMPROVEMENTS
   ===================================================== */

.floating-gift-btn {
    position: fixed;
    right: 15px;
    bottom: 80px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), #ff1a5c);
    padding: 12px 16px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255, 77, 141, 0.5);
    z-index: 998;
    animation: floatBounce 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.floating-gift-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 77, 141, 0.6);
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.gift-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.gift-label {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.gift-discount {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

.gift-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Mobile Gift Button */
@media (max-width: 480px) {
    .floating-gift-btn {
        right: 10px;
        bottom: 70px;
        padding: 10px 14px;
    }
    
    .gift-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .gift-discount {
        font-size: 0.9rem;
    }
    
    .gift-text {
        font-size: 0.65rem;
    }
}

/* =====================================================
   GIFT POPUP IMPROVEMENTS
   ===================================================== */

.gift-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gift-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gift-popup-modal {
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 77, 141, 0.2);
    box-shadow: 0 25px 80px rgba(255, 77, 141, 0.3);
}

.gift-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.gift-popup-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.gift-popup-content {
    display: flex;
    flex-direction: column;
}

.gift-popup-gallery {
    padding: 30px 30px 20px;
    text-align: center;
}

.gallery-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.gallery-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gallery-arrow:hover {
    background: var(--primary);
}

.gallery-dots {
    display: flex;
    gap: 8px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.gallery-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.gift-popup-info {
    padding: 20px 30px 30px;
    text-align: center;
}

.gift-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 77, 141, 0.2);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.gift-popup-info h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.gift-popup-info h3 .highlight {
    color: var(--primary);
}

.gift-popup-info > p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.gift-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
}

.gift-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.gift-features li i {
    color: #22c55e;
    font-size: 0.8rem;
}

.gift-trust {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 15px !important;
}

/* Desktop Popup Layout */
@media (min-width: 768px) {
    .gift-popup-content {
        flex-direction: row;
    }
    
    .gift-popup-gallery {
        flex: 1;
        padding: 30px;
    }
    
    .gallery-main img {
        height: 300px;
    }
    
    .gift-popup-info {
        flex: 1;
        padding: 30px;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .gift-popup-badge {
        align-self: flex-start;
    }
    
    .gift-features {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   GENERAL RESPONSIVE IMPROVEMENTS
   ===================================================== */

/* Container padding adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 50px 0;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (min-width: 769px) {
    .container {
        padding: 0 30px;
    }
    
    section {
        padding: 80px 0;
    }
}

/* Typography scaling */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    p {
        font-size: 0.95rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.65rem !important;
    }
    
    h3 {
        font-size: 1.35rem !important;
    }
}

/* Card and grid improvements */
@media (max-width: 640px) {
    .features-grid,
    .companions-grid,
    .pricing-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .features-grid,
    .companions-grid,
    .pricing-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Hero section improvements */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Breadcrumb improvements */
.breadcrumb-container {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.02);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }
    
    .hidden-desktop {
        display: none;
    }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
