/* 
 * seo-analiz.css
 * Dedicated styles for SEO Analysis landing page - PREMIUM V2
 */

:root {
    --seo-primary: #3E1E68;
    --seo-primary-light: #5d2f77;
    --seo-accent: #E45A92;
    --seo-accent-glow: rgba(228, 90, 146, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    --peri-gradient: linear-gradient(135deg, #3E1E68 0%, #E45A92 100%);
}

.peri-brand {
    font-family: 'Bagel Fat One', cursive !important;
    font-weight: normal; /* Bagel Fat One is already bold/thick */
    background: var(--peri-gradient); /* Gradient Text for better branding */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    letter-spacing: 1px;
    font-size: 1.1em;
    text-transform: none !important; /* Ensure it stays 'Peri' and not 'PERI' */
}

.peri-brand::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--seo-accent);
    border-radius: 4px;
    opacity: 0.15;
}

.seo-mesh-gradient-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(62, 30, 104, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(228, 90, 146, 0.05) 0%, transparent 40%);
    z-index: -1;
}

.seo-tech-pattern-v2 {
    position: absolute;
    inset: 0;
    background: url('../img/hero-tech-pattern.png') repeat;
    background-size: 400px auto;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* --- Hero Section --- */
.seo-hero {
    position: relative;
    background: radial-gradient(circle at 0% 0%, #2D164B 0%, #1a0b2e 100%);
    color: #fff;
    padding: 180px 0 120px;
    overflow: hidden;
}

.seo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/hero-tech-pattern.png') repeat;
    background-size: 512px auto;
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
    animation: seoTextureMove 80s linear infinite;
}

.hero-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--seo-accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.blob-1 {
    top: -200px;
    right: -200px;
    opacity: 0.4;
}

.blob-2 {
    bottom: -300px;
    left: -100px;
    opacity: 0.2;
}

@keyframes seoTextureMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 1024px 1024px;
    }
}

.seo-hero-img {
    border-radius: 40px; /* Rounding the edges */
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
    animation: seoFloat 5s ease-in-out infinite;
    max-height: 520px;
    position: relative;
    z-index: 3;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.seo-hero-img:hover {
    transform: scale(1.03) translateY(-10px);
    filter: drop-shadow(0 0 60px var(--seo-accent-glow)) 
            drop-shadow(0 0 100px rgba(62, 30, 104, 0.4));
    border-color: rgba(228, 90, 146, 0.4);
    box-shadow: inset 0 0 40px rgba(228, 90, 146, 0.1);
}

@keyframes seoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(1deg);
    }
}

/* --- Comparison Section --- */
.comparison-card {
    border-radius: 40px;
    padding: 60px 50px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-dark {
    background: linear-gradient(145deg, #2d164b 0%, #1a0b2e 100%);
    box-shadow: 0 40px 100px rgba(26, 11, 46, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-light {
    background: #ffffff;
    box-shadow: 0 40px 100px rgba(62, 30, 104, 0.06);
    border: 1px solid rgba(62, 30, 104, 0.04);
}

.card-inner-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(228, 90, 146, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.card-inner-glow-light {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(62, 30, 104, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.comparison-card>* {
    position: relative;
    z-index: 1;
}

.comparison-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 50px 120px rgba(26, 11, 46, 0.15);
}

.card-dark:hover {
    border-color: rgba(228, 90, 146, 0.3);
    box-shadow: 0 50px 120px rgba(26, 11, 46, 0.6);
}

/* --- Comparison Headers --- */
.comp-header {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px; /* Increased padding */
    border-radius: 20px;
    font-size: 1.65rem; /* Increased size to match heading feel */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.comp-header .peri-brand {
    font-size: 1.15em; /* Compensate for Bagel Fat One's short height */
    vertical-align: middle;
}

.comp-header-bad {
    background: rgba(220, 53, 69, 0.15);
    color: #ffffff;
    border: 1px solid rgba(220, 53, 69, 0.3);
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.1);
}

.comp-header-good {
    background: rgba(25, 135, 84, 0.08);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
    box-shadow: 0 10px 20px rgba(25, 135, 84, 0.05);
}

.comp-header i {
    font-size: 1.3rem;
    opacity: 0.9;
}

.pulse-bolt {
    animation: boltPulse 2s infinite;
}

@keyframes boltPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 193, 7, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.comparison-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(62, 30, 104, 0.1), transparent);
    z-index: 1;
}

/* --- Icon Boxes --- */
.icon-box-sm {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-danger {
    background: #DC3545 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.icon-success {
    background: #198754 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3);
}

.icon-box-sm i {
    line-height: 1;
}

.icon-box-lg {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

/* --- Grid System --- */
.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 40px;
}

@media (max-width: 1200px) {
    .seo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .seo-grid {
        grid-template-columns: 1fr;
    }
}

.seo-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(62, 30, 104, 0.05);
}

.seo-card:hover {
    background: #ffffff;
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(62, 30, 104, 0.12);
    border-color: var(--seo-accent);
}

.seo-icon-v2 {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(62, 30, 104, 0.08) 0%, rgba(228, 90, 146, 0.05) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--seo-primary);
    margin-bottom: 25px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(62, 30, 104, 0.05);
}

.seo-icon-v2::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.seo-card:hover .seo-icon-v2 {
    background: var(--seo-primary);
    color: #fff;
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 10px 25px rgba(62, 30, 104, 0.3);
}

.seo-card:hover .seo-icon-v2::after {
    transform: translateX(100%);
}

/* --- Dashboard Mockup Enhancements --- */
.active-gradient-badge {
    background: var(--peri-gradient);
    color: #fff !important;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 10px;
    font-size: 11px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(62, 30, 104, 0.2);
}

.chubby-progress {
    height: 12px !important;
    border-radius: 10px !important;
    background: rgba(62, 30, 104, 0.05) !important;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.chubby-progress .progress-bar {
    background: linear-gradient(
        90deg, 
        rgba(62, 30, 104, 1) 0%, 
        rgba(228, 90, 146, 1) 50%, 
        rgba(62, 30, 104, 1) 100%
    ) !important;
    background-size: 200% 100% !important;
    border-radius: 10px;
    animation: progressBarFlow 2s linear infinite;
    position: relative;
    overflow: hidden;
}

.chubby-progress .progress-bar::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(
        45deg, 
        rgba(255,255,255,0.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255,0.15) 50%, 
        rgba(255,255,255,0.15) 75%, 
        transparent 75%, 
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progressBarFlow {
    0% { background-position: 200% 0; }
    100% { background-position: 0 0; }
}

.peri-avatar-box {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    /* Gradient Border Trick */
    background: linear-gradient(white, white) padding-box,
                var(--peri-gradient) border-box;
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 10px 20px rgba(62, 30, 104, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.peri-avatar-box:hover {
    transform: scale(1.1) rotate(5deg);
}

.peri-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.texture-anim {
    animation: textureFlow 30s linear infinite;
}

.seo-cta-bg {
    background: linear-gradient(135deg, #1A0B2E 0%, #3E1E68 100%);
    position: relative;
    overflow: hidden;
    background-blend-mode: overlay;
}

/* Subtle overlay for the CTA section to make text pop even more */
.seo-cta-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(228, 90, 146, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

@keyframes textureFlow {
    from { background-position: 0 0; }
    to { background-position: 512px 512px; }
}

.seo-highlight-mockup {
    background: #ffffff;
    border-radius: 30px;
    padding: 25px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.mockup-body {
    background: #f9f9fb;
    border-radius: 20px;
    padding: 30px;
}

.pdf-preview {
    background: #ffffff !important;
    border: 2px solid #f0f0f5 !important;
    border-radius: 20px !important;
    padding: 20px !important;
}

/* --- Tags --- */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 25px;
}

.tag-item {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(62, 30, 104, 0.05);
    padding: 6px 14px;
    border-radius: 10px;
    color: var(--seo-primary);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.seo-card:hover .tag-item {
    background: rgba(228, 90, 146, 0.1);
    color: var(--seo-accent);
    border-color: rgba(228, 90, 146, 0.2);
}

/* Animations */
@keyframes seoFloating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.char-b {
    animation: seoFloating 4s ease-in-out infinite !important;
}

/* Z-Index Fixes */
.z-index-2 {
    z-index: 2;
}

.z-index-3 {
    z-index: 3;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .comparison-card {
        padding: 40px 30px;
        margin-bottom: 20px;
    }

    .display-4 {
        font-size: 2.5rem;
    }
}