/* ============================================
   LOGO FIXES
   ============================================ */
.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   DISCONNECT BUTTON STYLING
   ============================================ */
.disconnect-btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #888 !important;
    border: 1px solid #555 !important;
    background: transparent;
    transition: all 0.3s ease;
}

.disconnect-btn:hover {
    color: #aaa !important;
    border-color: #777 !important;
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   SMOOTH MOBILE EXPERIENCE
   ============================================ */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth transitions for all interactive elements */
.btn, .platform-card, .feature-card, .pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Touch-friendly button sizing */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
    }
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

/* Tablet and below (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .steps {
        gap: 20px;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 12px 15px;
    }

    .nav-container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .nav-links {
        display: none;
    }

    .nav-auth {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .nav-auth .user-email {
        font-size: 0.75rem;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #aaa;
    }

    .nav-auth .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .logo span {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        padding: 80px 20px 40px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-platforms {
        transform: scale(0.8);
    }
    
    /* Features Section */
    .features {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* How it Works */
    .how-it-works {
        padding: 40px 15px;
    }
    
    .steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .step {
        flex-direction: row;
        text-align: left;
        padding: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .step-content h3 {
        font-size: 1rem;
    }
    
    .step-content p {
        font-size: 0.85rem;
    }
    
    .step-connector {
        display: none; /* Hide connectors on mobile */
    }
    
    /* CTA Section */
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        max-width: 400px;
        margin: 20px;
        padding: 25px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .auth-form h2 {
        font-size: 1.4rem;
    }
    
    .btn-google {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    /* Dashboard specific */
    .dashboard {
        padding: 20px 15px;
    }
    
    .sync-interface {
        padding: 20px 15px;
    }
    
    .sync-title {
        font-size: 1.5rem;
    }
    
    .direction-selector-full {
        flex-direction: column;
        gap: 15px;
    }
    
    .platform-card {
        width: 100%;
        max-width: 100%;
    }
    
    .direction-arrow-container {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .usage-banner {
        padding: 15px;
    }
    
    .usage-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .plan-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    /* Playlist Modal */
    .playlist-selector {
        width: 95%;
        max-height: 85vh;
    }
    
    .playlist-header h2 {
        font-size: 1.3rem;
    }
    
    .playlist-item {
        padding: 12px;
    }
    
    .playlist-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .playlist-actions .btn {
        width: 100%;
    }
    
    /* Pricing Page */
    .pricing-page {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .pricing-header h1 {
        font-size: 1.8rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .pricing-card {
        padding: 25px 20px;
    }
    
    .price {
        font-size: 2rem;
    }
    
    /* Success Page */
    .success-card {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
    }
}

/* Small phones (max-width: 480px) */
@media (max-width: 480px) {
    /* Navigation for small phones - keep everything on one row */
    .nav-container {
        padding: 0;
        gap: 8px;
    }

    .nav-auth {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .nav-auth .user-email {
        font-size: 0.7rem;
        max-width: 90px;
    }

    .nav-auth .btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .logo-img {
        width: 26px;
        height: 26px;
    }

    .logo span {
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
    }

    .step {
        padding: 15px;
    }

    .modal-content {
        padding: 20px 15px;
    }

    .pricing-card {
        padding: 20px 15px;
    }

    /* Dashboard title */
    .sync-title {
        font-size: 1.3rem;
    }

    .sync-subtitle {
        font-size: 0.9rem;
    }
}

/* ============================================
   HAMBURGER MENU (Optional - for later)
   ============================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary, #fff);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card, #1a1a2e);
        padding: 20px;
        gap: 15px;
        border-top: 1px solid var(--border-color, #333);
    }
}
