/**
 * Extension Page Styles - Modern Redesign
 * Premium UI với animations và effects hiện đại
 */

/* ==================== EXTENSION HERO ==================== */

.ext-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.ext-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.ext-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(118, 75, 162, 0.1) 100%);
}

.ext-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
}

.ext-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ext-hero-left {
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ext-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 100px;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.ext-badge svg {
    stroke: currentColor;
}

.ext-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1a202c;
}

.ext-white-text {
    color: white;
}

.ext-gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ext-hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 32px;
    max-width: 540px;
}

.ext-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.ext-mini-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    transition: all 0.3s ease;
}

.ext-mini-feature:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.ext-mini-feature svg {
    stroke: #667eea;
}

.ext-hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.ext-btn-primary,
.ext-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.ext-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.ext-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.ext-btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.ext-btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.ext-hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.ext-stat {
    text-align: center;
}

.ext-stat-value {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.ext-stat-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.ext-stat-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

/* Mockup */
.ext-hero-right {
    position: relative;
}

.ext-mockup-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.ext-mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.ext-browser-window {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.ext-browser-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ext-browser-dots {
    display: flex;
    gap: 6px;
}

.ext-browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
}

.ext-browser-dots span:nth-child(1) { background: #fc5c65; }
.ext-browser-dots span:nth-child(2) { background: #fd9644; }
.ext-browser-dots span:nth-child(3) { background: #26de81; }

.ext-browser-url {
    flex: 1;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    color: #718096;
    text-align: center;
}

.ext-browser-menu {
    font-size: 20px;
    color: #718096;
}

.ext-popup {
    padding: 20px;
    min-height: 400px;
}

.ext-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.ext-popup-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ext-logo-icon svg {
    stroke: white;
}

.ext-popup-info {
    flex: 1;
}

.ext-popup-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2px;
}

.ext-popup-info p {
    font-size: 12px;
    color: #718096;
}

.ext-popup-settings {
    width: 36px;
    height: 36px;
    background: #f7fafc;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ext-popup-settings:hover {
    background: #edf2f7;
}

.ext-popup-settings svg {
    stroke: #4a5568;
}

.ext-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 16px;
}

.ext-search-box svg {
    stroke: #a0aec0;
}

.ext-search-box input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: #2d3748;
}

.ext-search-box input::placeholder {
    color: #a0aec0;
}

.ext-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.ext-account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ext-account-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ext-account-item.active {
    background: white;
    border-color: #667eea;
}

.ext-account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ext-account-avatar.chatgpt {
    background: linear-gradient(135deg, #10a37f 0%, #1a7f64 100%);
}

.ext-account-avatar.claude {
    background: linear-gradient(135deg, #d4896e 0%, #b8724f 100%);
}

.ext-account-avatar.gemini {
    background: linear-gradient(135deg, #4285f4 0%, #0f9d58 100%);
}

.ext-account-avatar svg {
    fill: white;
}

.ext-account-info {
    flex: 1;
}

.ext-account-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 2px;
}

.ext-status {
    font-size: 12px;
    color: #a0aec0;
}

.ext-status.active {
    color: #48bb78;
}

.ext-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ext-login-btn:hover {
    transform: translateX(4px);
}

.ext-login-btn svg {
    stroke: currentColor;
}

.ext-popup-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.ext-footer-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ext-footer-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.ext-footer-btn svg {
    stroke: currentColor;
}

/* ==================== HOW IT WORKS ==================== */

.ext-how-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f7fafc 0%, white 100%);
}

.ext-section-header {
    text-align: center;
    margin-bottom: 80px;
}

.ext-section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 100px;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ext-section-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 16px;
}

.ext-section-desc {
    font-size: 18px;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.ext-steps-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.ext-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.ext-step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.ext-step-number span {
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.ext-step-content {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.ext-step-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

.ext-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ext-step-icon svg {
    stroke: #667eea;
}

.ext-step-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.ext-step-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #718096;
}

.ext-step-connector {
    display: flex;
    align-items: center;
    margin-top: 40px;
    flex-shrink: 0;
}

/* ==================== FEATURES SECTION ==================== */

.ext-features-section {
    padding: 100px 0;
    background: white;
}

.ext-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.ext-feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s ease;
}

.ext-feature-card:hover {
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.ext-feature-icon-wrapper {
    margin-bottom: 24px;
}

.ext-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ext-feature-icon.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
}

.ext-feature-icon.blue svg { stroke: #3b82f6; }

.ext-feature-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.1));
}

.ext-feature-icon.purple svg { stroke: #8b5cf6; }

.ext-feature-icon.pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(219, 39, 119, 0.1));
}

.ext-feature-icon.pink svg { stroke: #ec4899; }

.ext-feature-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
}

.ext-feature-icon.green svg { stroke: #10b981; }

.ext-feature-icon.orange {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(249, 115, 22, 0.1));
}

.ext-feature-icon.orange svg { stroke: #fb923c; }

.ext-feature-icon.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
}

.ext-feature-icon.red svg { stroke: #ef4444; }

.ext-feature-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.ext-feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #718096;
}

/* ==================== PLATFORMS SECTION ==================== */

.ext-platforms-section {
    padding: 100px 0;
    background: linear-gradient(180deg, white 0%, #f7fafc 100%);
}

.ext-platforms-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.ext-platform-item {
    text-align: center;
    padding: 24px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.ext-platform-item:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

.ext-platform-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.ext-platform-icon.chatgpt {
    background: linear-gradient(135deg, #10a37f 0%, #1a7f64 100%);
}

.ext-platform-icon.claude {
    background: linear-gradient(135deg, #d4896e 0%, #b8724f 100%);
}

.ext-platform-icon.gemini {
    background: linear-gradient(135deg, #4285f4 0%, #0f9d58 100%);
}

.ext-platform-icon.default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ext-platform-icon svg {
    fill: white;
}

.ext-platform-item h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}

/* ==================== DOWNLOAD SECTION ==================== */

.ext-download-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.ext-download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
}

.ext-download-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.ext-download-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ext-download-icon svg {
    stroke: white;
}

.ext-download-card h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.ext-download-card p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 48px;
}

.ext-download-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.ext-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 36px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ext-download-btn.primary {
    background: white;
    color: #667eea;
}

.ext-download-btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.ext-download-btn.primary svg {
    fill: #667eea;
}

.ext-download-btn-text {
    text-align: left;
}

.ext-download-btn-text small {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    font-weight: 500;
}

.ext-download-btn-text strong {
    display: block;
    font-size: 16px;
}

.ext-download-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ext-download-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
}

.ext-download-btn.secondary svg {
    stroke: white;
}

.ext-download-features {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.ext-download-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    opacity: 0.95;
}

.ext-download-feature svg {
    stroke: white;
    flex-shrink: 0;
}

/* ==================== CTA SECTION ==================== */

.ext-cta-section {
    padding: 100px 0;
    background: #f7fafc;
}

.ext-cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.ext-cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 16px;
}

.ext-cta-content p {
    font-size: 18px;
    color: #718096;
    margin-bottom: 40px;
}

.ext-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.ext-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ext-cta-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.ext-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.ext-cta-btn.primary svg {
    stroke: currentColor;
}

.ext-cta-btn.secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.ext-cta-btn.secondary:hover {
    background: #667eea;
    color: white;
}

.ext-cta-btn.secondary svg {
    stroke: currentColor;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1200px) {
    .ext-hero-content {
        gap: 60px;
    }
    
    .ext-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ext-platforms-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .ext-hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .ext-hero-title {
        font-size: 40px;
    }
    
    .ext-hero-actions {
        flex-direction: column;
    }
    
    .ext-steps-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .ext-step-connector {
        display: none;
    }
    
    .ext-features-grid {
        grid-template-columns: 1fr;
    }
    
    .ext-platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ext-download-actions {
        flex-direction: column;
    }
    
    .ext-download-features {
        flex-direction: column;
        gap: 20px;
    }
}
