/* ===== PROGRAMATIK REKLAMCILIK PAGE STYLES ===== */

/* Programmatic Hero Section */
.programmatic-hero {
    background: var(--gradient-mesh), var(--background);
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.programmatic-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.05) 0%, 
        rgba(99, 102, 241, 0.03) 50%, 
        rgba(239, 68, 68, 0.05) 100%);
    z-index: 1;
}

.programmatic-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.programmatic-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-warm);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-colored-pink);
}

.programmatic-hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.programmatic-hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.programmatic-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.feature-item i {
    color: var(--accent-secondary);
    font-size: 1rem;
}

.feature-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.programmatic-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-secondary);
    font-family: var(--font-heading);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.programmatic-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Programmatic Ecosystem */
.programmatic-hero-visual {
    position: relative;
    height: 500px;
}

.programmatic-ecosystem {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}

.ecosystem-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-colored);
    z-index: 10;
}

.center-logo i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.center-logo span {
    font-size: 0.75rem;
    font-weight: 600;
}

.ecosystem-nodes {
    position: relative;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: var(--background);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-120px) rotate(calc(-1 * var(--angle)));
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    animation: nodeFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--angle) / 60deg * 0.5s);
}

.node:hover {
    border-color: var(--accent-secondary);
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-120px) rotate(calc(-1 * var(--angle))) scale(1.1);
}

.node i {
    color: var(--accent-secondary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.node span {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-primary);
}

@keyframes nodeFloat {
    0%, 100% { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-120px) rotate(calc(-1 * var(--angle))); }
    50% { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-125px) rotate(calc(-1 * var(--angle))); }
}

.connection-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-secondary), transparent);
    transform: translate(-50%, -50%) rotate(var(--rotation)) translateY(-40px);
    animation: linePulse 2s ease-in-out infinite;
    animation-delay: calc(var(--rotation) / 60deg * 0.3s);
}

@keyframes linePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.bidding-animation {
    position: absolute;
    top: 20px;
    right: -50px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bid-item {
    background: var(--background);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 140px;
    animation: bidAppear 0.5s ease-out;
}

.bid-item:nth-child(1) { animation-delay: 0s; }
.bid-item:nth-child(2) { animation-delay: 0.2s; }
.bid-item:nth-child(3) { animation-delay: 0.4s; }

@keyframes bidAppear {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bid-price {
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.bid-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: var(--background-secondary);
    color: var(--text-secondary);
}

.bid-status.winning {
    background: var(--success-color);
    color: white;
}

/* Technology Section */
.programmatic-technology {
    padding: 6rem 0;
    background: var(--background-secondary);
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: var(--background);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-warm);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.tech-card:hover::before {
    transform: scaleX(1);
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.tech-card.featured {
    border: 2px solid var(--accent-secondary);
    background: linear-gradient(135deg, var(--background) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-warm);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-warm);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-colored-pink);
}

.tech-icon i {
    color: white;
    font-size: 1.5rem;
}

.tech-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tech-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tech-features {
    list-style: none;
}

.tech-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.tech-features i {
    color: var(--success-color);
    font-size: 0.875rem;
}

/* Formats Section */
.programmatic-formats {
    padding: 6rem 0;
    background: var(--background);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.format-card {
    background: var(--background);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.format-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.format-preview {
    height: 120px;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.display-ad {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ad-content {
    color: white;
    text-align: center;
}

.ad-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.video-ad {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    flex-direction: column;
}

.video-player {
    color: white;
    text-align: center;
    margin-bottom: 1rem;
}

.video-player i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.video-progress {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: white;
    border-radius: 2px;
    transition: width 2s ease;
}

.native-ad {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
}

.native-content {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.native-image {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}

.native-text {
    flex: 1;
}

.native-title {
    height: 12px;
    background: var(--text-primary);
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.native-desc {
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    width: 80%;
}

.audio-ad {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.audio-player {
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-player i {
    font-size: 2rem;
}

.audio-waves {
    display: flex;
    gap: 0.25rem;
    align-items: end;
}

.wave {
    width: 4px;
    height: 20px;
    background: white;
    border-radius: 2px;
    animation: waveAnimation 1s ease-in-out infinite;
}

.wave:nth-child(1) { animation-delay: 0s; }
.wave:nth-child(2) { animation-delay: 0.2s; }
.wave:nth-child(3) { animation-delay: 0.4s; }
.wave:nth-child(4) { animation-delay: 0.6s; }

@keyframes waveAnimation {
    0%, 100% { height: 20px; }
    50% { height: 35px; }
}

.format-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.format-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.format-specs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.spec {
    background: var(--background-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

/* Process Section */
.programmatic-process {
    padding: 6rem 0;
    background: var(--background-secondary);
}

.process-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.process-step {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    gap: 2rem;
    align-items: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 80px;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(to bottom, var(--accent-secondary), transparent);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-colored-pink);
}

.step-content {
    text-align: center;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--background);
    border: 2px solid var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.timeline-marker {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: var(--background);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

/* Results Section */
.programmatic-results {
    padding: 6rem 0;
    background: var(--background);
}

.results-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.metric-card {
    background: var(--background);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-normal);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.metric-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-warm);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.metric-content {
    flex: 1;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.metric-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.metric-change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.metric-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.metric-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.case-studies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.case-study {
    background: var(--background-secondary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
}

.case-header {
    margin-bottom: 2rem;
}

.case-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.case-duration {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    background: var(--background);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.case-metric {
    text-align: center;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.case-metric .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-secondary);
    font-family: var(--font-heading);
}

.case-metric .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA Section */
.programmatic-cta {
    padding: 6rem 0;
    background: var(--gradient-warm);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--accent-secondary);
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: white;
}

.cta-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: var(--accent-secondary);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.cta-feature i {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .programmatic-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .programmatic-hero-visual {
        height: 400px;
    }
    
    .bidding-animation {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .programmatic-hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }
    
    .programmatic-hero-title {
        font-size: 2.5rem;
    }
    
    .programmatic-features {
        justify-content: center;
    }
    
    .programmatic-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .programmatic-hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .technology-grid {
        grid-template-columns: 1fr;
    }
    
    .formats-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .process-step::after {
        display: none;
    }
    
    .results-dashboard {
        grid-template-columns: 1fr;
    }
    
    .case-studies {
        grid-template-columns: 1fr;
    }
    
    .case-metrics {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .programmatic-hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .tech-card {
        padding: 2rem;
    }
    
    .format-card {
        padding: 1.5rem;
    }
    
    .metric-card {
        flex-direction: column;
        text-align: center;
    }
    
    .programmatic-ecosystem {
        width: 250px;
        height: 250px;
    }
}