/* Import base styles from main site */
@import url('style.css');

/* ================================
   Plugin-Specific Styles
   ================================ */

/* Plugin Hero */
.plugin-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.plugin-hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.plugin-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

body.dark-mode .plugin-badge {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.3);
    color: #a78bfa;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.meta-item svg {
    flex-shrink: 0;
    stroke: #10b981;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-visual img:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
}

/* Dark mode for hero visual */
body.dark-mode .hero-visual img {
    border-color: var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .hero-visual img:hover {
    box-shadow: 0 25px 50px rgba(167, 139, 250, 0.3);
}

.screenshot-placeholder {
    background: var(--background-secondary);
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    transition: var(--transition);
}

.screenshot-placeholder:hover {
    border-color: #667eea;
}

.screenshot-placeholder.large {
    min-height: 500px;
}

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

.placeholder-content svg {
    stroke: var(--text-muted);
    margin-bottom: 16px;
}

.placeholder-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.placeholder-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Problem Section */
.problem-section {
    padding: 100px 0;
    background: var(--background-secondary);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.problem-item {
    text-align: center;
    padding: 32px 24px;
}

.problem-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-icon svg {
    stroke: white;
}

.problem-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.problem-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Solution Section */
.solution-section {
    padding: 100px 0;
}

.protection-layers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.layer-item {
    background: var(--background-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    min-width: 200px;
    text-align: center;
    transition: var(--transition);
}

.layer-item:hover {
    transform: translateY(-4px);
    border-color: #667eea;
    box-shadow: var(--shadow-lg);
}

.layer-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
}

.layer-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.layer-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.layer-arrow {
    flex-shrink: 0;
}

.layer-arrow svg {
    stroke: var(--text-muted);
}

/* Dark mode optimizations for solution section */
body.dark-mode .solution-section {
    background: var(--background);
}

body.dark-mode .layer-item {
    background: var(--background-secondary);
    border-color: var(--border);
}

body.dark-mode .layer-item:hover {
    border-color: #a78bfa;
}

body.dark-mode .layer-content h3 {
    color: #f7fafc;
}

body.dark-mode .layer-content p {
    color: #e2e8f0;
}

body.dark-mode .layer-arrow svg {
    stroke: #64748b;
}

/* Features Grid - Plugin specific */
.features {
    padding: 100px 0;
    background: var(--background-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #667eea;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    stroke: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    padding: 32px 24px;
    background: var(--background-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}

.step-item:hover {
    transform: translateY(-4px);
    border-color: #667eea;
    box-shadow: var(--shadow-lg);
}

.step-number {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

body.dark-mode .step-number {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
}

.step-icon {
    margin-bottom: 20px;
}

.step-icon svg {
    stroke: var(--primary);
}

.step-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.step-connector svg line {
    stroke: var(--border);
}

.how-it-works-cta {
    text-align: center;
    margin-top: 60px;
}

/* Dark mode optimizations for how-it-works */
body.dark-mode .how-it-works {
    background: var(--background);
}

body.dark-mode .step-item {
    background: var(--background-secondary);
    border-color: var(--border);
}

body.dark-mode .step-item:hover {
    border-color: #a78bfa;
}

body.dark-mode .step-icon svg {
    stroke: #a78bfa;
}

body.dark-mode .step-item h3 {
    color: #f7fafc;
}

body.dark-mode .step-item p {
    color: #e2e8f0;
}

body.dark-mode .step-connector svg line {
    stroke: #374151;
}

/* Screenshots */
.screenshots {
    padding: 100px 0;
    background: var(--background-secondary);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.screenshot-item:first-child {
    grid-column: 1 / -1;
}

.screenshot-item .screenshot-placeholder {
    min-height: 300px;
}

.screenshot-item:first-child .screenshot-placeholder {
    min-height: 450px;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item img:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.screenshot-caption {
    text-align: center;
    margin-top: 24px;
}

.screenshot-caption h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.screenshot-caption p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Dark mode for screenshots */
body.dark-mode .screenshot-item img {
    border-color: var(--border);
}

body.dark-mode .screenshot-caption h4 {
    color: #f7fafc;
}

body.dark-mode .screenshot-caption p {
    color: #e2e8f0;
}

/* Comparison Table */
.comparison {
    padding: 100px 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 60px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background);
    table-layout: fixed;
}

.comparison-table thead {
    background: var(--background-secondary);
}

.comparison-table th {
    padding: 20px 24px;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    vertical-align: middle;
}

.comparison-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: middle;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: var(--background-secondary);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table .highlight {
    color: #10b981;
    font-weight: 600;
}

.comparison-table .highlight svg {
    stroke: #10b981;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
}

.comparison-table .negative {
    color: #ef4444;
}

.comparison-table .neutral {
    color: var(--text-secondary);
}

/* Dark mode optimizations for comparison table */
body.dark-mode .comparison {
    background: var(--background);
}

body.dark-mode .comparison-table-wrapper {
    border-color: var(--border);
}

body.dark-mode .comparison-table {
    background: var(--background);
}

body.dark-mode .comparison-table thead {
    background: var(--background-secondary);
}

body.dark-mode .comparison-table th {
    color: #f7fafc;
    border-bottom-color: var(--border);
}

body.dark-mode .comparison-table td {
    color: #e2e8f0;
    border-bottom-color: var(--border);
}

body.dark-mode .comparison-table td:first-child {
    color: #f7fafc;
}

body.dark-mode .comparison-table tbody tr:hover {
    background: var(--background-secondary);
}

body.dark-mode .comparison-table .highlight {
    color: #10b981;
}

body.dark-mode .comparison-table .negative {
    color: #f87171;
}

body.dark-mode .comparison-table .neutral {
    color: #cbd5e0;
}

/* Technical Section */
.technical-section {
    padding: 100px 0;
    background: var(--background-secondary);
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.technical-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.technical-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.technical-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.technical-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.technical-list li svg {
    flex-shrink: 0;
    stroke: #10b981;
}

.github-cta {
    text-align: center;
    margin-top: 48px;
}

/* FAQ */
.faq {
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: #667eea;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-question:hover {
    color: #667eea;
}

.faq-question svg {
    flex-shrink: 0;
    stroke: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* Dark mode optimizations for FAQ */
body.dark-mode .faq {
    background: var(--background);
}

body.dark-mode .faq-item {
    background: var(--background-secondary);
    border-color: var(--border);
}

body.dark-mode .faq-item:hover {
    border-color: #a78bfa;
}

body.dark-mode .faq-question {
    color: #f7fafc;
}

body.dark-mode .faq-question:hover {
    color: #a78bfa;
}

body.dark-mode .faq-question svg {
    stroke: #64748b;
}

body.dark-mode .faq-answer p {
    color: #e2e8f0;
}

/* Final CTA */
.final-cta {
    padding: 120px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-buttons .btn-primary {
    background: white;
    color: #667eea;
}

.cta-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-note p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Navigation CTA Link */
.nav-link-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-link-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .plugin-hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .protection-layers {
        flex-direction: column;
    }
    
    .layer-arrow {
        transform: rotate(90deg);
    }
    
    .step-connector {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .problem-grid,
    .features-grid,
    .technical-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot-item:first-child {
        grid-column: 1;
    }
    
    .comparison-table-wrapper {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 16px 12px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-content > p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 20px;
    }
    
    .faq-answer p {
        font-size: 14px;
        padding: 0 20px 20px;
    }
}

