/* 
Embed Education Page CSS
Created: 2026-01-25

Marketing/education page for the embed feature.
Shows tool gallery and embed code generation.
*/

/* ============================================
   EMBED PAGE WRAPPER
   ============================================ */

.embed-education-page {
    position: relative;
    background: hsl(var(--background));
}

/* ============================================
   EMBED HERO SECTION
   ============================================ */

.embed-hero {
    position: relative;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    background: linear-gradient(
        180deg,
        hsl(var(--primary) / 0.08) 0%,
        hsl(var(--primary) / 0.02) 50%,
        transparent 100%
    );
}

.embed-hero-content {
    max-width: 680px;
    margin: 0 auto;
}

.embed-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.embed-hero-icon svg {
    width: 32px;
    height: 32px;
    color: hsl(var(--primary));
}

.embed-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0 0 1rem;
    line-height: 1.2;
}

.embed-hero-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin: 0 0 2rem;
    line-height: 1.6;
}

.embed-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.embed-cta-primary,
.embed-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.embed-cta-primary {
    color: hsl(var(--primary-foreground));
    background: hsl(var(--primary));
}

.embed-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
}

.embed-cta-secondary {
    color: hsl(var(--foreground));
    background: transparent;
    border: 1px solid hsl(var(--border));
}

.embed-cta-secondary:hover {
    background: hsl(var(--muted));
}

.embed-cta-primary svg,
.embed-cta-secondary svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 480px) {
    .embed-hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .embed-hero {
        padding: 5rem 2rem 4rem;
    }
    
    .embed-hero-title {
        font-size: 3rem;
    }
    
    .embed-hero-subtitle {
        font-size: 1.25rem;
    }
}

/* ============================================
   BENEFITS SECTION
   ============================================ */

.embed-benefits {
    padding: 3rem 1.5rem;
    background: hsl(var(--muted) / 0.3);
}

.embed-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.embed-benefit-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.embed-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: hsl(var(--primary) / 0.1);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.embed-benefit-icon svg {
    width: 24px;
    height: 24px;
    color: hsl(var(--primary));
}

.embed-benefit-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 0.5rem;
}

.embed-benefit-text {
    font-size: 0.938rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .embed-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .embed-benefits {
        padding: 4rem 2rem;
    }
    
    .embed-benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.embed-how-it-works {
    padding: 3rem 1.5rem;
}

.embed-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.embed-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0 0 0.5rem;
}

.embed-section-subtitle {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.embed-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.embed-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.embed-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    border: 2px solid hsl(var(--primary) / 0.3);
    border-radius: 50%;
}

.embed-step-content {
    flex: 1;
    padding-top: 0.25rem;
}

.embed-step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 0.375rem;
}

.embed-step-text {
    font-size: 0.938rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
    line-height: 1.5;
}

/* Code Example Block */
.embed-code-example {
    max-width: 700px;
    margin: 0 auto;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    overflow: hidden;
}

.embed-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: hsl(var(--muted) / 0.5);
    border-bottom: 1px solid hsl(var(--border));
}

.embed-code-label {
    font-size: 0.813rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.embed-code-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.813rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.embed-code-copy:hover {
    background: hsl(var(--muted));
}

.embed-code-copy svg {
    width: 14px;
    height: 14px;
}

.embed-code-block {
    margin: 0;
    padding: 1.25rem 1rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background: hsl(var(--card));
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

@media (min-width: 768px) {
    .embed-how-it-works {
        padding: 4rem 2rem;
    }
    
    .embed-section-title {
        font-size: 2rem;
    }
    
    .embed-steps {
        flex-direction: row;
        gap: 2rem;
    }
    
    .embed-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    .embed-step-number {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* ============================================
   TOOLS GALLERY SECTION
   ============================================ */

.embed-tools-section {
    padding: 3rem 1.5rem;
    background: hsl(var(--muted) / 0.3);
}

/* Category Pills */
.embed-category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.embed-category-pill {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.embed-category-pill:hover {
    border-color: hsl(var(--primary) / 0.3);
    color: hsl(var(--foreground));
}

.embed-category-pill.active {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Tools Grid */
.embed-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.embed-tool-card {
    display: flex;
    flex-direction: column;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.embed-tool-card:hover {
    border-color: hsl(var(--primary) / 0.3);
    box-shadow: 0 4px 12px hsl(var(--foreground) / 0.05);
}

.embed-tool-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.embed-tool-icon svg {
    width: 24px;
    height: 24px;
}

/* Icon colors by category */
.embed-tool-icon.ip {
    background: hsl(200 80% 50% / 0.1);
    color: hsl(200 80% 50%);
}

.embed-tool-icon.dns {
    background: hsl(280 70% 55% / 0.1);
    color: hsl(280 70% 55%);
}

.embed-tool-icon.domain {
    background: hsl(140 60% 45% / 0.1);
    color: hsl(140 60% 45%);
}

.embed-tool-icon.general {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.embed-tool-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 0.375rem;
}

.embed-tool-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0 0 1rem;
    line-height: 1.5;
    flex: 1;
}

.embed-tool-actions {
    display: flex;
    gap: 0.5rem;
}

.embed-tool-preview-btn,
.embed-tool-code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    flex: 1;
    padding: 0.625rem 0.875rem;
    font-size: 0.813rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.embed-tool-preview-btn {
    color: hsl(var(--foreground));
    background: hsl(var(--muted) / 0.5);
    border: 1px solid hsl(var(--border));
}

.embed-tool-preview-btn:hover {
    background: hsl(var(--muted));
}

.embed-tool-code-btn {
    color: hsl(var(--primary-foreground));
    background: hsl(var(--primary));
    border: 1px solid hsl(var(--primary));
}

.embed-tool-code-btn:hover {
    background: hsl(var(--primary) / 0.9);
}

.embed-tool-preview-btn svg,
.embed-tool-code-btn svg {
    width: 14px;
    height: 14px;
}

.embed-no-tools {
    text-align: center;
    color: hsl(var(--muted-foreground));
    padding: 2rem;
}

@media (min-width: 480px) {
    .embed-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .embed-tools-section {
        padding: 4rem 2rem;
    }
    
    .embed-tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .embed-tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   FAQ SECTION
   ============================================ */

.embed-faq-section {
    padding: 3rem 1.5rem;
}

.embed-faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.embed-faq-item {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    overflow: hidden;
}

.embed-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    cursor: pointer;
    list-style: none;
}

.embed-faq-question::-webkit-details-marker {
    display: none;
}

.embed-faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: hsl(var(--muted-foreground));
    transition: transform 0.2s ease;
}

.embed-faq-item[open] .embed-faq-question::after {
    transform: rotate(45deg);
}

.embed-faq-answer {
    padding: 0 1.25rem 1rem;
    font-size: 0.938rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .embed-faq-section {
        padding: 4rem 2rem;
    }
}

/* ============================================
   EMBED CODE MODAL
   ============================================ */

.embed-code-modal {
    position: fixed;
    max-width: 560px;
    width: calc(100% - 2rem);
    border: none;
    border-radius: 1rem;
    padding: 0;
    background: hsl(var(--card));
    box-shadow: 0 25px 50px -12px hsl(var(--foreground) / 0.25);
}

.embed-code-modal::backdrop {
    background: hsl(var(--foreground) / 0.5);
    backdrop-filter: blur(4px);
}

.embed-code-modal-content {
    display: flex;
    flex-direction: column;
}

.embed-code-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.embed-code-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0;
}

.embed-code-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all 0.2s ease;
}

.embed-code-modal-close:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.embed-code-modal-close svg {
    width: 20px;
    height: 20px;
}

.embed-code-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.embed-modal-option {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.embed-modal-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.embed-theme-selector {
    display: flex;
    gap: 0.5rem;
}

.embed-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--muted) / 0.5);
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.embed-theme-btn:hover {
    border-color: hsl(var(--foreground) / 0.2);
}

.embed-theme-btn.active {
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary) / 0.3);
}

.embed-theme-btn svg {
    width: 16px;
    height: 16px;
}

.embed-modal-code {
    background: hsl(var(--muted) / 0.3);
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    overflow: hidden;
}

.embed-modal-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    background: hsl(var(--muted) / 0.5);
    border-bottom: 1px solid hsl(var(--border));
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.embed-modal-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.embed-modal-copy-btn:hover {
    background: hsl(var(--muted));
}

.embed-modal-copy-btn svg {
    width: 12px;
    height: 12px;
}

.embed-modal-code-block {
    margin: 0;
    padding: 1rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.813rem;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background: transparent;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.embed-code-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    justify-content: center;
}

.embed-modal-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--primary));
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.embed-modal-preview-link:hover {
    opacity: 0.8;
}

.embed-modal-preview-link svg {
    width: 16px;
    height: 16px;
}
