/**
 * Features Page Styles - Modern Redesign
 * Premium UI với showcase layouts và visual elements
 */

/* ==================== FEATURES HERO ==================== */

.feat-hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.feat-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.feat-hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.feat-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.05) 0%, 
        rgba(118, 75, 162, 0.05) 50%,
        rgba(240, 147, 251, 0.05) 100%);
}

.feat-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feat-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    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: 15px;
    font-weight: 600;
    margin-bottom: 28px;
}

.feat-badge svg {
    stroke: currentColor;
}

.feat-hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1a202c;
}

.feat-white-text {
    color: white;
}

.feat-gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feat-hero-desc {
    font-size: 20px;
    line-height: 1.6;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto 48px;
}

.feat-hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
}

.feat-stat-item {
    text-align: center;
}

.feat-stat-number {
    font-size: 36px;
    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: 8px;
}

.feat-stat-label {
    font-size: 14px;
    color: #718096;
    font-weight: 600;
}

/* ==================== MAIN SHOWCASES ==================== */

.feat-main-section {
    padding: 80px 0;
}

.feat-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.feat-showcase:last-child {
    margin-bottom: 0;
}

.feat-showcase-left {
    /* Content on left, visual on right */
}

.feat-showcase-right {
    /* Visual on left, content on right */
}

.feat-showcase-right .feat-showcase-content {
    order: 2;
}

.feat-showcase-right .feat-showcase-visual {
    order: 1;
}

.feat-showcase-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.feat-showcase-badge.core {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    color: #667eea;
}

.feat-showcase-badge.team {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    color: #10b981;
}

.feat-showcase-badge.developer {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
    color: #3b82f6;
}

.feat-showcase-badge.extension {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(219, 39, 119, 0.15));
    color: #ec4899;
}

.feat-showcase-title {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feat-showcase-desc {
    font-size: 18px;
    line-height: 1.7;
    color: #cbd5e0;
    margin-bottom: 32px;
}

.feat-showcase-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.feat-showcase-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feat-showcase-feature svg {
    flex-shrink: 0;
    stroke: #10b981;
    margin-top: 2px;
}

.feat-showcase-feature h5 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.feat-showcase-feature p {
    font-size: 14px;
    color: #cbd5e0;
    line-height: 1.5;
}

.feat-showcase-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.feat-showcase-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.feat-showcase-btn svg {
    stroke: currentColor;
}

/* Visual Cards */
.feat-showcase-visual {
    position: relative;
}

.feat-visual-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.4s ease;
}

.feat-visual-card:hover {
    transform: translateY(-8px) rotateY(5deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.feat-visual-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.feat-visual-dots {
    display: flex;
    gap: 6px;
}

.feat-visual-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.feat-visual-dots span:nth-child(1) { background: #fc5c65; }
.feat-visual-dots span:nth-child(2) { background: #fd9644; }
.feat-visual-dots span:nth-child(3) { background: #26de81; }

.feat-visual-header span {
    font-size: 14px;
    font-weight: 600;
    color: #718096;
}

.feat-visual-content {
    padding: 32px;
}

/* SSO Visual */
.sso-visual {
    max-width: 480px;
}

.sso-login-form {
    text-align: center;
}

.sso-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sso-logo svg {
    stroke: white;
}

.sso-login-form h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 28px;
}

.sso-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 16px;
}

.sso-input svg {
    stroke: #a0aec0;
}

.sso-input span {
    flex: 1;
    text-align: left;
    color: #2d3748;
    font-size: 15px;
}

.sso-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 24px;
}

.sso-platforms {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.sso-platform {
    padding: 8px 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
}

.sso-platform.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: #667eea;
    color: #667eea;
}

/* Team Visual */
.team-visual {
    max-width: 520px;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #f7fafc;
    border-radius: 12px;
}

.team-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.team-avatar.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.team-avatar.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.team-avatar.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.team-info {
    flex: 1;
}

.team-info h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2px;
}

.team-info span {
    font-size: 13px;
    color: #718096;
}

.team-role {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.team-role.admin {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.team-role.member {
    background: rgba(113, 128, 150, 0.1);
    color: #718096;
}

.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.team-stat {
    text-align: center;
    padding: 16px;
    background: #f7fafc;
    border-radius: 10px;
}

.team-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 4px;
}

.team-stat-label {
    font-size: 12px;
    color: #718096;
    font-weight: 600;
}

/* API Visual */
.api-visual {
    max-width: 560px;
}

.api-code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
    background: #1a202c;
    color: #e2e8f0;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
}

.api-code pre {
    margin: 0;
}

.api-code code {
    display: block;
}

.api-method {
    color: #48bb78;
    font-weight: 700;
}

.api-header {
    color: #f093fb;
    font-weight: 600;
}

.api-body {
    color: #63b3ed;
    font-weight: 600;
}

.api-response {
    color: #fbd38d;
    font-weight: 600;
}

/* Extension Visual */
.ext-visual {
    max-width: 400px;
}

.ext-popup-demo {
    background: #f7fafc;
    border-radius: 12px;
    overflow: hidden;
}

.ext-demo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.ext-demo-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ext-demo-logo svg {
    stroke: white;
}

.ext-demo-header span {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
}

.ext-demo-accounts {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ext-demo-account {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 10px;
}

.ext-demo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.ext-demo-icon.chatgpt {
    background: linear-gradient(135deg, #10a37f 0%, #1a7f64 100%);
}

.ext-demo-icon.claude {
    background: linear-gradient(135deg, #d4896e 0%, #b8724f 100%);
}

.ext-demo-icon.gemini {
    background: linear-gradient(135deg, #4285f4 0%, #0f9d58 100%);
}

.ext-demo-account span {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.ext-demo-status {
    font-size: 12px;
    color: #cbd5e0;
}

.ext-demo-status.active {
    color: #48bb78;
}

.ext-demo-btn {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.ext-demo-btn svg {
    stroke: currentColor;
}

/* ==================== ADDITIONAL FEATURES GRID ==================== */

.feat-additional-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.feat-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.feat-section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 100px;
    color: #a0aec0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.feat-section-title {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.feat-section-desc {
    font-size: 18px;
    color: #cbd5e0;
    max-width: 600px;
    margin: 0 auto;
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px;
    text-align: center;
    transition: all 0.4s ease;
}

.feat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    transform: translateY(-8px);
}

.feat-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feat-card-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.1));
}

.feat-card-icon.purple svg { stroke: #8b5cf6; }

.feat-card-icon.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
}

.feat-card-icon.blue svg { stroke: #3b82f6; }

.feat-card-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
}

.feat-card-icon.green svg { stroke: #10b981; }

.feat-card-icon.orange {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(249, 115, 22, 0.1));
}

.feat-card-icon.orange svg { stroke: #fb923c; }

.feat-card-icon.pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(219, 39, 119, 0.1));
}

.feat-card-icon.pink svg { stroke: #ec4899; }

.feat-card-icon.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
}

.feat-card-icon.red svg { stroke: #ef4444; }

.feat-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.feat-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e0;
}

/* ==================== PLATFORMS SECTION ==================== */

.feat-platforms-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.feat-platforms-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.feat-platform-card {
    text-align: center;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feat-platform-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    transform: translateY(-4px);
}

.feat-platform-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.feat-platform-logo.chatgpt {
    background: linear-gradient(135deg, #10a37f 0%, #1a7f64 100%);
}

.feat-platform-logo.claude {
    background: linear-gradient(135deg, #d4896e 0%, #b8724f 100%);
}

.feat-platform-logo.gemini {
    background: linear-gradient(135deg, #4285f4 0%, #0f9d58 100%);
}

.feat-platform-logo.midjourney {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.feat-platform-logo.perplexity {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.feat-platform-logo.more {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feat-platform-logo svg {
    fill: white;
}

.feat-platform-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.feat-platform-card p {
    font-size: 13px;
    color: #cbd5e0;
}

/* ==================== CTA SECTION ==================== */

.feat-cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.feat-cta-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>');
}

.feat-cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.feat-cta-content h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
}

.feat-cta-content p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 48px;
}

.feat-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.feat-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.feat-cta-btn.primary {
    background: white;
    color: #667eea;
}

.feat-cta-btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feat-cta-btn.primary svg {
    stroke: currentColor;
}

.feat-cta-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.feat-cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
}

.feat-cta-btn.secondary svg {
    stroke: currentColor;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1200px) {
    .feat-showcase {
        gap: 60px;
    }
    
    .feat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feat-platforms-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .feat-hero-title {
        font-size: 40px;
    }
    
    .feat-hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .feat-showcase {
        grid-template-columns: 1fr;
        gap: 48px;
        margin-bottom: 80px;
    }
    
    .feat-showcase-right .feat-showcase-content {
        order: 1;
    }
    
    .feat-showcase-right .feat-showcase-visual {
        order: 2;
    }
    
    .feat-showcase-title {
        font-size: 32px;
    }
    
    .feat-grid {
        grid-template-columns: 1fr;
    }
    
    .feat-platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feat-cta-buttons {
        flex-direction: column;
    }
    
    .feat-cta-content h2 {
        font-size: 36px;
    }
}
