/**
 * Úpravy webu sekce - Styly
 * JERGONLAB 2025
 * Design: Černá nahoře, bílá dole
 */

/* ========================================
   Hlavní sekce
   ======================================== */
.upravy-section {
    position: relative;
    overflow: hidden;
    border-top: 5px solid #D4AF37;
}

/* ========================================
   HORNÍ ČÁST - ČERNÁ
   ======================================== */
.upravy-top {
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
    padding: 100px 0;
    position: relative;
}

/* ========================================
   DOLNÍ ČÁST - BÍLÁ
   ======================================== */
.upravy-bottom {
    background: #FFFFFF;
    padding: 100px 0;
    position: relative;
}

/* Container */
.upravy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

/* ========================================
   Header
   ======================================== */
.upravy-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.upravy-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.upravy-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: var(--font-weight-black, 900);
    color: #FFFFFF;
    margin-bottom: 25px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.upravy-title .highlight {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upravy-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   Intro text
   ======================================== */
.upravy-intro {
    max-width: 900px;
    margin: 0 auto 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.2s;
}

.upravy-intro.visible {
    opacity: 1;
    transform: translateY(0);
}

.upravy-intro-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: var(--font-weight-bold, 700);
    color: #FFFFFF;
    margin-bottom: 30px;
    text-align: center;
}

.title-icon {
    flex-shrink: 0;
    stroke: #D4AF37;
    opacity: 0.8;
}

.upravy-intro-text {
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
}

.upravy-highlight-text {
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(212, 175, 55, 0.1);
    padding: 30px;
    border-left: 4px solid #D4AF37;
    border-radius: 8px;
    text-align: left;
}

.upravy-highlight-text strong {
    color: #D4AF37;
    font-weight: var(--font-weight-bold, 700);
}

/* ========================================
   Changes grid
   ======================================== */
.upravy-changes {
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}

.upravy-changes.visible {
    opacity: 1;
    transform: translateY(0);
}

.changes-title {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: var(--font-weight-semibold, 600);
    color: #FFFFFF;
    margin-bottom: 40px;
    text-align: center;
}

.changes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.change-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.change-item.visible {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.change-item:hover {
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.change-icon {
    flex-shrink: 0;
    stroke: #10B981;
    margin-top: 2px;
}

.change-item strong {
    display: block;
    color: #FFFFFF;
    font-weight: var(--font-weight-semibold, 600);
    font-size: var(--font-size-base);
    margin-bottom: 5px;
}

.change-item span {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.changes-footer {
    font-size: var(--font-size-md);
    color: #D4AF37;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Process section
   ======================================== */
.upravy-process {
    max-width: 800px;
    margin: 0 auto 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.upravy-process.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: var(--font-weight-bold, 700);
    color: #0A0A0A;
    margin-bottom: 50px;
    text-align: center;
}

.process-icon {
    stroke: #D4AF37;
}

.process-steps {
    margin-bottom: 50px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #FAFAFA, #F5F5F5);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.process-step.visible {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #0A0A0A;
    font-size: 1.75rem;
    font-weight: var(--font-weight-black, 900);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.35);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold, 600);
    color: #0A0A0A;
    margin-bottom: 15px;
}

.step-example {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid #D4AF37;
    border-radius: 6px;
}

.step-example svg {
    flex-shrink: 0;
    stroke: #D4AF37;
    margin-top: 2px;
}

.step-example span {
    font-size: var(--font-size-base);
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

.process-arrow {
    text-align: center;
    margin: 20px 0;
    opacity: 0.3;
}

.process-arrow svg {
    stroke: #D4AF37;
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* Process timer */
.process-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.05));
    border: 2px solid #D4AF37;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.process-timer svg {
    stroke: #D4AF37;
    animation: timerRotate 4s linear infinite;
}

@keyframes timerRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.timer-text {
    font-size: 1.375rem;
    color: #666;
}

.timer-text strong {
    color: #D4AF37;
    font-weight: var(--font-weight-extrabold, 800);
    font-size: 1.75rem;
}

/* ========================================
   Benefits
   ======================================== */
.upravy-benefits {
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}

.upravy-benefits.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefits-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: var(--font-weight-semibold, 600);
    color: #0A0A0A;
    margin-bottom: 40px;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #FFFFFF;
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.95);
}

.benefit-item.visible {
    animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
    border-color: #D4AF37;
    background: linear-gradient(135deg, #FFFFFF, #FFFEF5);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    stroke: #D4AF37;
}

.benefit-item strong {
    display: block;
    color: #0A0A0A;
    font-weight: var(--font-weight-semibold, 600);
    font-size: var(--font-size-base);
    margin-bottom: 5px;
}

.benefit-item span {
    color: #666;
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

/* ========================================
   Dekorativní prvky
   ======================================== */
.upravy-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    pointer-events: none;
}

.upravy-decoration-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -200px;
    background: radial-gradient(circle, #D4AF37 0%, transparent 70%);
    animation: float 25s ease-in-out infinite;
}

.upravy-decoration-2 {
    width: 350px;
    height: 350px;
    top: 40%;
    right: -175px;
    background: radial-gradient(circle, #FFD700 0%, transparent 70%);
    animation: float 20s ease-in-out infinite reverse;
}

.upravy-decoration-3 {
    width: 300px;
    height: 300px;
    bottom: 30%;
    left: -150px;
    background: radial-gradient(circle, #D4AF37 0%, transparent 70%);
    animation: float 22s ease-in-out infinite;
}

.upravy-decoration-4 {
    width: 450px;
    height: 450px;
    bottom: -225px;
    right: 10%;
    background: radial-gradient(circle, #FFD700 0%, transparent 70%);
    animation: float 28s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(30px) rotate(240deg);
    }
}

/* ========================================
   Responzivní design
   ======================================== */
@media (max-width: 1024px) {
    .upravy-top,
    .upravy-bottom {
        padding: 80px 0;
    }
    
    .changes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .upravy-top,
    .upravy-bottom {
        padding: 60px 0;
    }
    
    .upravy-container {
        padding: 0 20px;
    }
    
    .upravy-header {
        margin-bottom: 40px;
    }
    
    .upravy-title {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .upravy-subtitle {
        font-size: var(--font-size-base);
    }
    
    .upravy-intro {
        margin-bottom: 60px;
    }
    
    .upravy-intro-title {
        font-size: 1.375rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .upravy-intro-text,
    .upravy-highlight-text {
        font-size: var(--font-size-base);
    }
    
    .upravy-highlight-text {
        padding: 20px;
    }
    
    .changes-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .change-item {
        padding: 15px;
    }
    
    .process-title {
        font-size: 1.625rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .process-step {
        padding: 20px;
        gap: 15px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.375rem;
    }
    
    .step-content h4 {
        font-size: 1.125rem;
    }
    
    .step-example {
        padding: 12px;
    }
    
    .step-example span {
        font-size: var(--font-size-sm);
    }
    
    .process-timer {
        padding: 20px;
        gap: 15px;
    }
    
    .timer-text {
        font-size: 1.125rem;
    }
    
    .timer-text strong {
        font-size: 1.375rem;
    }
    
    .benefits-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .benefit-item {
        padding: 20px;
        gap: 15px;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
    }
    
    .upravy-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .upravy-top,
    .upravy-bottom {
        padding: 50px 0;
    }
    
    .upravy-title {
        font-size: 28px;
    }
    
    .changes-title {
        font-size: 1.25rem;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .step-example {
        flex-direction: column;
        text-align: left;
    }
    
    .process-timer {
        flex-direction: column;
    }
}

/* Performance optimalizace */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}