/**
 * WhiteR Pro - Service Pages CSS
 * @version 1.11.6
 * Új hero design, timeline, contact form inline
 */

/* ============================================
   Hero Badge Animation
   ============================================ */

.whiter-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: rgb(59, 130, 246);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .whiter-hero-badge {
    color: rgb(96, 165, 250);
}

.whiter-hero-badge-pulse {
    position: relative;
    display: inline-flex;
    height: 0.5rem;
    width: 0.5rem;
}

.whiter-hero-badge-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgb(96, 165, 250);
    opacity: 0.75;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.whiter-hero-badge-dot {
    position: relative;
    display: inline-flex;
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 50%;
    background: rgb(59, 130, 246);
}

/* ============================================
   Gradient Text Utility
   ============================================ */

.whiter-gradient-text {
    background: linear-gradient(to right, rgb(59, 130, 246), rgb(168, 85, 247));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Timeline - Center Line Design
   ============================================ */

.whiter-timeline {
    position: relative;
    max-width: 48rem;
    margin: 3rem auto;
    padding: 0 1rem;
}

/* Center Line */
.whiter-timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.3) 15%,
        rgba(59, 130, 246, 0.3) 85%,
        rgba(59, 130, 246, 0) 100%
    );
    transform: translateX(-50%);
}

[data-theme="dark"] .whiter-timeline__line {
    background: linear-gradient(
        to bottom,
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.4) 15%,
        rgba(59, 130, 246, 0.4) 85%,
        rgba(59, 130, 246, 0) 100%
    );
}

/* Timeline Item */
.whiter-timeline__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

.whiter-timeline__item:last-child {
    margin-bottom: 0;
}

/* Circle */
.whiter-timeline__circle {
    position: relative;
    z-index: 10;
    width: 3.5rem;
    height: 3.5rem;
    background: #fff;
    border: 3px solid rgb(59, 130, 246);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

[data-theme="dark"] .whiter-timeline__circle {
    background: #050505;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.whiter-timeline__circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.whiter-timeline__number {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(59, 130, 246);
}

/* Content */
.whiter-timeline__content {
    margin-top: 1.5rem;
    text-align: center;
    max-width: 24rem;
}

.whiter-timeline__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .whiter-timeline__title {
    color: #fff;
}

.whiter-timeline__text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .whiter-timeline__text {
    color: rgba(255, 255, 255, 0.6);
}

/* Desktop Expand */
@media (min-width: 1024px) {
    .whiter-timeline {
        max-width: 64rem;
    }
    
    .whiter-timeline__content {
        max-width: 28rem;
    }
}

/* ============================================
   Hero Visual Card
   ============================================ */

.whiter-hero-visual {
    position: relative;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.whiter-hero-visual__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.15);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse 8s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.whiter-hero-visual__card {
    position: relative;
    z-index: 10;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .whiter-hero-visual__card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.whiter-hero-visual__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .whiter-hero-visual__header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.whiter-hero-visual__dots {
    display: flex;
    gap: 0.375rem;
}

.whiter-hero-visual__dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
}

.whiter-hero-visual__dot--red {
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid rgb(239, 68, 68);
}

.whiter-hero-visual__dot--yellow {
    background: rgba(234, 179, 8, 0.3);
    border: 1px solid rgb(234, 179, 8);
}

.whiter-hero-visual__dot--green {
    background: rgba(34, 197, 94, 0.3);
    border: 1px solid rgb(34, 197, 94);
}

.whiter-hero-visual__url {
    margin: 0 auto;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-family: 'Courier New', monospace;
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .whiter-hero-visual__url {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.whiter-hero-visual__score {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.whiter-hero-visual__score-label {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .whiter-hero-visual__score-label {
    color: rgba(255, 255, 255, 0.6);
}

.whiter-hero-visual__score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

[data-theme="dark"] .whiter-hero-visual__score-value {
    color: #fff;
}

.whiter-hero-visual__score-max {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .whiter-hero-visual__score-max {
    color: rgba(255, 255, 255, 0.4);
}

.whiter-hero-visual__progress {
    height: 0.5rem;
    width: 100%;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .whiter-hero-visual__progress {
    background: rgba(255, 255, 255, 0.1);
}

.whiter-hero-visual__progress-fill {
    height: 100%;
    background: linear-gradient(to right, rgb(239, 68, 68), rgb(249, 115, 22));
    transition: width 1s ease-out;
}

.whiter-hero-visual__stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.whiter-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
}

[data-theme="dark"] .whiter-stat-item {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.whiter-stat-item__icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.whiter-stat-item__icon i {
    width: 1rem;
    height: 1rem;
}

.whiter-stat-item--error .whiter-stat-item__icon,
.whiter-stat-item--error .whiter-stat-item__value {
    color: rgb(239, 68, 68);
}

.whiter-stat-item--warning .whiter-stat-item__icon,
.whiter-stat-item--warning .whiter-stat-item__value {
    color: rgb(234, 179, 8);
}

.whiter-stat-item--success .whiter-stat-item__icon,
.whiter-stat-item--success .whiter-stat-item__value {
    color: rgb(34, 197, 94);
}

.whiter-stat-item__label {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .whiter-stat-item__label {
    color: rgba(255, 255, 255, 0.7);
}

.whiter-stat-item__value {
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.whiter-hero-visual__scan {
    margin-top: 1rem;
    padding-top: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.625rem;
    color: rgba(0, 0, 0, 0.4);
    animation: blink 2s infinite;
}

[data-theme="dark"] .whiter-hero-visual__scan {
    color: rgba(255, 255, 255, 0.4);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   Code Terminal
   ============================================ */

.whiter-code-terminal {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

[data-theme="dark"] .whiter-code-terminal {
    background: rgba(15, 15, 17, 1);
    border-color: rgba(255, 255, 255, 0.1);
}

.whiter-code-terminal__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .whiter-code-terminal__header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.whiter-code-terminal__title {
    font-size: 0.625rem;
    font-family: 'Courier New', monospace;
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .whiter-code-terminal__title {
    color: rgba(255, 255, 255, 0.5);
}

.whiter-code-terminal__content {
    padding: 1.25rem;
    overflow-x: auto;
}

.whiter-code-terminal__content pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.6875rem;
    line-height: 1.75;
    color: rgba(0, 0, 0, 0.7);
    white-space: pre-wrap;
}

[data-theme="dark"] .whiter-code-terminal__content pre {
    color: rgba(255, 255, 255, 0.7);
}

.whiter-code-terminal__content code {
    font-family: inherit;
}

/* ============================================
   Split Section
   ============================================ */

.whiter-split-section {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 3rem 0;
    overflow: hidden;
}

[data-theme="dark"] .whiter-split-section {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.whiter-split-section__glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(59, 130, 246, 0.05);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
}

[data-theme="dark"] .whiter-split-section__glow {
    background: rgba(59, 130, 246, 0.1);
}

.whiter-split-section__grid {
    position: relative;
    z-index: 10;
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .whiter-split-section__grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }
}

.whiter-split-section__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .whiter-split-section__title {
    color: #fff;
}

.whiter-split-section__content {
    font-size: 0.875rem;
    line-height: 1.625;
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .whiter-split-section__content {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Service Section Backgrounds (Alternating)
   ============================================ */

/* Default: NINCS background */
.whiter-service-section {
    background: transparent;
}

/* Minden második section kapjon subtle background */
.whiter-service-section:nth-child(even) {
    background: rgba(0, 0, 0, 0.01);
}

[data-theme="dark"] .whiter-service-section:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

/* Exceptions: Split section és code terminal mindig kapjon background */
.whiter-split-section,
.whiter-code-terminal {
    /* Backgrounds already defined above */
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1023px) {
    .whiter-hero-visual {
        min-height: 400px;
    }
    
    .whiter-split-section {
        padding: 1.5rem;
    }
    
    .whiter-timeline {
        padding: 0 0.5rem;
    }
}
