/* ========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================== */
/* NOTE: CSS Variables are now dynamically generated per hospital
   See includes/dynamic-colors.php for the actual color definitions
   This allows each hospital to customize their color scheme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
}

em {
    font-style: italic;
}

.ql-align-center {
    text-align: center;
}

.ql-align-right {
    text-align: right;
}

.ql-align-left {
    text-align: left;
}

.ql-align-justify {
    text-align: justify;
}

.ql-size-small {
    font-size: 0.875rem;
}

.ql-size-large {
    font-size: 1.25rem;
}

/* Header Navigation */
.header {
    background: var(--color-bg-white);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 65px;
}

.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.logo a {
    height: 55px;
}

.logo img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    background: var(--color-main-button);
    color: var(--color-bg-white);
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-main-heading);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
@media (max-width: 1050px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        gap: 0;
        box-shadow: -5px 0 15px var(--shadow-light);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Stagger animation for menu items */
    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links li:nth-child(6) { transition-delay: 0.35s; }
    .nav-links li:nth-child(7) { transition-delay: 0.4s; }
    
    .nav-links a {
        display: block;
        padding: 20px;
        border-radius: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-links a:hover, .nav-links a.active {
        background: var(--color-main-button);
        color: var(--color-bg-white);
    }
    
    /* Overlay for mobile menu */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .logo a {
        height: 50px;
    }
    
    .logo img {
        height: 50px;
        width: auto;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Homepage Styles */
h2 {
    font-size: 2.5rem;
    color: var(--color-main-heading);
    margin-bottom: 40px;
    text-align: center;
}

/* Additional blue dominance for main elements */
.hero-section {
    text-align: center;
    padding: 100px 20px;
    /* background-image is set inline in PHP for dynamic content */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    color: var(--color-bg-white);
    margin-bottom: 50px;
    box-shadow: 0 20px 40px var(--shadow-heading);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 35px;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 50px;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: var(--color-main-button);
    color: var(--color-bg-white);
    padding: 18px 35px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px var(--shadow-dark);
    transition: all 0.3s ease;
}

.hero-section .cta-button {
    background: var(--color-bg-white);
    color: var(--color-main-heading);
    margin-bottom: 10px;
    opacity: 0.9;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--shadow-darker);
    background: var(--color-main-button-hover);
    color: var(--color-bg-white);
}

/* Quick Navigation Cards */
.quick-nav {
    margin: 50px 0 60px 0;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.quick-nav-card {
    background: var(--color-bg-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quick-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-main-heading), var(--color-main-button));
}

.quick-nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-medium);
    outline: 2px solid var(--color-main-button);
}

.quick-nav-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-main-heading);
    display: flex;
    align-items: center;
}

.quick-nav-card .icon {
    font-size: 2rem;
    margin-right: 15px;
}

.quick-nav-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.quick-nav-card .features {
    list-style: none;
    text-align: left;
}

.quick-nav-card .features li {
    padding: 6px 0;
    color: var(--color-text-tertiary);
    position: relative;
    padding-left: 20px;
}

.quick-nav-card .features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-main-heading);
    font-weight: bold;
}

/* Quick nav card specific colors - Updated color scheme */
.quick-nav-card:nth-child(1) { /* O operaci TEP */
    outline-color: var(--color-operaci-main);
    i {
        color: var(--color-operaci-main);
    }
}

.quick-nav-card:nth-child(1)::before {
    background: linear-gradient(90deg, var(--color-operaci-main), var(--color-operaci-shade-1));
}

.quick-nav-card:nth-child(2) { /* Před operací */
    outline-color: var(--color-predoperaci-main);
    i {
        color: var(--color-predoperaci-main);
    }
}

.quick-nav-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--color-predoperaci-main), var(--color-predoperaci-shade-1));
}

.quick-nav-card:nth-child(2) h3 {
    color: var(--color-main-heading);
}

.quick-nav-card:nth-child(3) { /* Operace */
    outline-color: var(--color-operace-main);
    i {
        color: var(--color-operace-main);
    }
}

.quick-nav-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--color-operace-main), var(--color-operace-shade-1));
}

.quick-nav-card:nth-child(4) { /* Po operaci */
    outline-color: var(--color-pooperaci-main);
    i {
        color: var(--color-pooperaci-main);
    }
}

.quick-nav-card:nth-child(4)::before {
    background: linear-gradient(90deg, var(--color-pooperaci-main), var(--color-pooperaci-shade-1));
}

.quick-nav-card:nth-child(5) { /* Kontakty */
    outline-color: var(--color-kontakty-main);
    i {
        color: var(--color-kontakty-main);
    }
}

.quick-nav-card:nth-child(5)::before {
    background: linear-gradient(90deg, var(--color-kontakty-main), var(--color-kontakty-shade-1));
}

.quick-nav-card:nth-child(6) { /* Downloads - Ke stažení */
    outline-color: var(--color-faq-main);
    i {
        color: var(--color-faq-main);
    }
}

.quick-nav-card:nth-child(6)::before {
    background: linear-gradient(90deg, var(--color-faq-main), var(--color-faq-shade-1));
}

/* Hover effects for each card type */
.quick-nav-card:nth-child(1):hover {
    box-shadow: 0 20px 40px var(--shadow-heading);
}

.quick-nav-card:nth-child(2):hover {
    box-shadow: 0 20px 40px var(--shadow-button);
}

.quick-nav-card:nth-child(3):hover {
    box-shadow: 0 20px 40px var(--shadow-operace);
}

.quick-nav-card:nth-child(4):hover {
    box-shadow: 0 20px 40px var(--shadow-pooperaci);
}

.quick-nav-card:nth-child(5):hover {
    box-shadow: 0 20px 40px var(--shadow-kontakty);
}

.quick-nav-card:nth-child(6):hover {
    box-shadow: 0 20px 40px var(--shadow-heading);
}

/* Timeline Section */
.timeline-section {
    margin: 60px 0;
}

/* Timeline Grid */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.timeline-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-box {
    background: var(--color-bg-white);
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-button-light);
    font-weight: 500;
    color: #2c3e50;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    line-height: 1.4;
}

.timeline-box:hover {
    background: linear-gradient(135deg, var(--color-bg-white), #f0f8ff);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-button-hover);
    border-color: var(--color-main-button);
}

/* Responsive Timeline */
@media (max-width: 1024px) {
    .timeline-grid {
        gap: 10px;
    }

    .timeline-box {
        padding: 15px;
        font-size: 0.9rem;
    }
}

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

    .timeline-column {
        display: none;
    }
}

/* Section Cards */
.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.section-card {
    background: var(--color-bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.section-card:hover {
    transform: translateY(-10px);
}

.section-card.before {
    background: linear-gradient(135deg, var(--color-predoperaci-main), var(--color-predoperaci-shade-1));
    color: var(--color-bg-white);
    border-color: var(--color-predoperaci-main);
}

.section-card.during {
    background: linear-gradient(135deg, var(--color-operace-main), var(--color-operace-shade-1)); /* Růžová to lighter pink */
    color: var(--color-bg-white);
    border-color: var(--color-operace-main); /* Růžová */
}

.section-card.after {
    background: linear-gradient(135deg, var(--color-pooperaci-main), var(--color-pooperaci-shade-1)); /* Šedá to lighter gray */
    color: var(--color-bg-white);
    border-color: var(--color-pooperaci-main); /* Šedá */
}

.section-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-main-heading);
    display: flex;
    align-items: center;
}

.section-card .icon {
    font-size: 2.5rem;
    margin-right: 15px;
}

.section-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.section-card .features {
    list-style: none;
    margin: 20px 0;
}

.section-card .features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.section-card .features li::before {
    content: "✓";
    margin-right: 10px;
    font-weight: bold;
}

/* Content Sections */
.content-section {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    border-radius: 20px;
    color: var(--color-bg-white);
}

.content-header.about {
    background: linear-gradient(135deg, var(--color-operaci-main), var(--color-operaci-shade-1));
}

.content-header.contacts {
    background: linear-gradient(135deg, var(--color-kontakty-main), var(--color-kontakty-shade-1));
}

.content-header.before {
    background: linear-gradient(135deg, var(--color-predoperaci-main), var(--color-predoperaci-shade-1));
}

.content-header.faq {
    background: linear-gradient(135deg, var(--color-faq-main), var(--color-faq-shade-1));
}

.content-header.downloads {
    background: linear-gradient(135deg, var(--color-faq-main), var(--color-faq-shade-1));
}

.content-header.during {
    background: linear-gradient(135deg, var(--color-operace-main), var(--color-operace-shade-1)); /* Růžová to lighter pink */
}

.content-header.after {
    background: linear-gradient(135deg, var(--color-pooperaci-main), var(--color-pooperaci-shade-1)); /* Šedá to lighter gray */
}

.content-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-header .icon {
    font-size: 3.5rem;
    margin-right: 20px;
}

/* Checklist Styles */
.checklist {
    background: var(--color-bg-white);
    border-radius: 15px;
    padding: 35px 40px;
    margin: 40px 0;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.checklist h3 {
    color: var(--color-main-heading);
    margin-top: 5px;
    font-size: 1.5rem;
}

.checklist-items {
    list-style: none;
}

.checklist-items li {
    padding: 10px 5px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.checklist-items li:hover {
    background: var(--color-bg-primary);
}

.checklist-items li input[type="checkbox"] {
    margin-right: 15px;
    transform: scale(1.2);
}

/* Info Boxes */
.info-box {
    margin: 40px 0;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid;
    transition: all 0.3s ease;
}

.info-box.tip {
    background: var(--color-infobox-tip-bg);
    border-color: var(--color-infobox-tip-border);
}

.info-box.warning {
    background: var(--color-infobox-warning-bg);
    border-color: var(--color-infobox-warning-border);
}

.info-box.important {
    background: var(--color-infobox-important-bg);
    border-color: var(--color-infobox-important-border);
}

.info-box h4 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: var(--color-main-heading);
}

.info-box h3 {
    color: var(--color-main-heading);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.info-box ul, .info-box ol {
    padding-left: 30px;
}

.info-box ul li, .info-box ol li {
    margin: 5px 0;
}

/* Search Box */
.search-container {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    position: relative;
}

.search-box {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    border: 2px solid var(--color-border-medium);
    border-radius: 30px;
    font-size: 1rem;
}

.search-box:focus {
    outline: none;
    transition: border-color 0.3s ease;
    border-color: var(--color-main-button);
}

.search-box::placeholder {
    color: var(--color-text-light);
    font-style: italic;
}

/* Search Suggestions Styles */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: var(--color-bg-white);
    border: 2px solid #e1e5e9;
    border-top: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-medium);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--color-bg-primary);
}

.suggestion-item:active {
    background: #e9ecef;
}

.suggestion-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.suggestion-description {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.suggestion-page {
    color: var(--color-main-button);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Responsive adjustments for search suggestions */
@media (max-width: 768px) {
    .search-suggestions {
        left: 20px;
        right: 20px;
        transform: none;
        width: calc(100% - 40px);
        max-width: none;
    }
    
    .suggestion-item {
        padding: 12px 15px;
    }
    
    .suggestion-title {
        font-size: 15px;
    }
    
    .suggestion-description {
        font-size: 13px;
    }
}

.text-section {
    margin-top: 40px;
    padding: 0 5px;
}

.text-section.collapsed .text-content {
    display: none;
}


.text-section h3 {
    margin-bottom: 15px;
    color: var(--color-main-heading);
    font-size: 1.75rem;
}

.text-section h4 {
    margin-bottom: 15px;
    color: var(--color-main-heading);
    font-size: 1.25rem;
}

.text-section h3 i {
    margin-left: 0.25rem;
    font-size: 75%;
    transition: all 0.3s ease;
    opacity: 0;
}

.text-section h3:hover i {
    opacity: 1;
}

.text-section.collapsed h3 i {
    transform: rotate(90deg);
    opacity: 1;
}

.text-section p {
    margin-top: 15px;
}

.text-section ul, .text-section ol {
    padding-left: 30px;
}

.text-section li {
    margin-top: 5px;
}

/* AI Chatbot Button and Dialog */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-main-button), var(--color-main-standard-link));
    border: none;
    border-radius: 50%;
    color: var(--color-bg-white);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 25px var(--shadow-button);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--shadow-button-hover);
    background: linear-gradient(135deg, var(--color-main-button-hover), var(--color-main-button));
}

.chatbot-dialog {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    max-width: 98%;
    height: 500px;
    background: var(--color-bg-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-dark);
    z-index: 1002;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-dialog.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--color-main-button), var(--color-main-standard-link));
    color: var(--color-bg-white);
    padding: 10px;
    text-align: center;
    position: relative;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-bg-white);
}

.chatbot-close {
    position: absolute;
    top: 5px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-bg-white);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--color-bg-primary);
}

.chatbot-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.chatbot-message.user {
    justify-content: flex-end;
}

.chatbot-message.bot {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 18px;
    word-wrap: break-word;
    font-size: 15px;
}

.message-bubble.user {
    background: linear-gradient(135deg, var(--color-main-button), var(--color-main-standard-link));
    color: var(--color-bg-white);
    border-bottom-right-radius: 6px;
}

.message-bubble.bot {
    background: var(--color-bg-white);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-light);
    border-bottom-left-radius: 6px;
}

.chatbot-input-container {
    padding: 15px;
    border-top: 1px solid var(--color-border-light);
    background: var(--color-bg-white);
}

.chatbot-input {
    width: 100%;
    padding: 12px 42px 12px 16px;
    border: 2px solid var(--color-border-light);
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.chatbot-input:focus {
    border-color: var(--color-main-button);
}

.chatbot-input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.chatbot-send {
    position: absolute;
    right: 20px;
    bottom: 19px;
    background: var(--color-main-button);
    border: none;
    color: var(--color-bg-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.chatbot-send:hover {
    background: var(--color-main-button-hover);
}

.chatbot-send:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.chatbot-send:disabled:hover {
    background: #ccc;
}

/* Typing indicator styles */
.chatbot-message.typing .message-bubble.typing {
    background: #f0f0f0;
    color: #666;
    font-style: italic;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* HTML content formatting in chatbot messages */
.chatbot-message .message-bubble p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.chatbot-message .message-bubble a, .text-section a, .complication-card a {
    color: var(--color-main-standard-link);
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.chatbot-message .message-bubble a:hover, .text-section a:hover, .complication-card a:hover {
    color: var(--color-main-standard-link-hover);
}

.chatbot-message .message-bubble ul, .chatbot-message .message-bubble ol {
    margin-bottom: 8px;
    line-height: 1.4;
    padding-left: 20px;
}

.chatbot-message .message-bubble li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.chatbot-message .message-bubble p:last-child {
    margin-bottom: 0;
}

.chatbot-message .message-bubble br {
    display: block;
    margin: 4px 0;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .content-header h1 {
        font-size: 2rem;
        flex-direction: column;
        text-align: center;
    }

    .content-header .icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .quick-nav-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quick-nav-card {
        padding: 25px;
    }

    .section-cards {
        gap: 20px;
    }

    .cta-button {
        padding: 15px 25px;
        font-size: 1rem;
    }

    .checklist, .info-box {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 50px 15px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .container {
        padding: 20px 15px;
    }

    .quick-nav h2 {
        font-size: 2rem;
    }

    .timeline-section h2 {
        font-size: 2rem;
    }

    .chatbot-dialog {
        width: 90vw;
        height: 70vh;
        right: 5vw;
        bottom: 80px;
    }

    .chatbot-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}

/* Footer Styles */
.page-footer {
    background-color: var(--color-main-footer-bg);
    color: var(--color-bg-white);
    padding: 40px 0 30px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

.footer-section h4 {
    color: var(--color-bg-white);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a.author {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
    text-underline-offset: 2px;
}

.footer-section a.author:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-bg-white);
    text-decoration: underline;
}

.footer-section i {
    width: 16px;
    text-align: center;
    margin-right: 8px;
}

.complication-card {
    background: var(--color-bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 5px solid var(--color-operace-main);
}

.complication-card h3 {
    color: var(--color-main-heading);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.complication-card ul {
    margin: 0;
    padding-left: 25px;
    line-height: 1.7;
}

.movements-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.movements-card {
    background: var(--color-bg-white);
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movements-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px var(--shadow-medium);
}

.movement-icon {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movement-icon img {
    width: 120px;
    height: auto;
    max-width: 100%;
}

.movement-content {
    flex: 1;
}

.movement-content p {
    margin: 0;
    color: var(--color-text-primary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    
    .page-footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .page-footer {
        padding: 25px 0 15px;
        margin-top: 30px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
}

/* Hexagon Motif Styling */
.hexagon-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
    align-items: stretch;
}

.hexagon-advice {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    background: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 10px;
}

.hexagon-advice:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.hexagon-advice p {
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

.hexagon-advice.gold {
    background: linear-gradient(135deg, var(--color-predoperaci-hexagon-gold), var(--color-predoperaci-hexagon-gold-gradient));
}

.hexagon-advice.orange {
    background: linear-gradient(135deg, var(--color-predoperaci-hexagon-orange), var(--color-predoperaci-hexagon-orange-gradient));
}

.hexagon-advice.gray {
    background: linear-gradient(135deg, var(--color-predoperaci-hexagon-gray), var(--color-predoperaci-hexagon-gray-gradient));
}

.hexagon-advice.teal {
    background: linear-gradient(135deg, var(--color-kontakty-main), var(--color-kontakty-shade-1));
    color: var(--color-bg-white);
}

.hexagon-advice.teal strong {
    color: var(--color-bg-white);
    font-weight: 600;
}

/* Return to life section - color variants based on brochure */
.hexagon-advice h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--color-main-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hexagon-advice h4 i {
    font-size: 1.1rem;
}

.hexagon-advice.white-card {
    background: var(--color-bg-white);
    color: var(--color-text-primary);
    justify-content: flex-start;
}

.hexagon-advice.white-card h4 {
    color: var(--color-main-heading);
}

.hexagon-advice.dark-teal {
    background: linear-gradient(135deg, var(--color-pooperaci-hexagon-darkteal), var(--color-pooperaci-hexagon-darkteal-gradient));
    color: var(--color-bg-white);
    justify-content: flex-start;
}

.hexagon-advice.dark-teal h4 {
    color: var(--color-bg-white);
}

.hexagon-advice.bright-teal {
    background: linear-gradient(135deg, var(--color-pooperaci-hexagon-brightteal), var(--color-pooperaci-hexagon-brightteal-gradient));
    justify-content: flex-start;
}

.hexagon-advice.gray-card {
    background: linear-gradient(135deg, var(--color-pooperaci-hexagon-gray), var(--color-pooperaci-hexagon-gray-gradient));
    color: var(--color-text-primary);
    justify-content: flex-start;
}

.hexagon-advice.gray-card h4 {
    color: var(--color-main-heading);
}

/* Info sections with colored headings */
.info-section {
    margin: 40px 0;
}

.info-section.teal .section-heading {
    background: linear-gradient(135deg, var(--color-kontakty-main), var(--color-kontakty-shade-1));
    color: var(--color-bg-white);
    padding: 15px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
    box-shadow: 0 5px 15px var(--shadow-kontakty);
    position: relative;
}

.info-section.teal .section-heading::before {
    content: '▶';
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Warning box styling */
.info-box.warning {
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.15);
}

.info-box.warning ul li {
    font-size: 1rem;
}

/* Legacy hexagon styles */
.hexagon-item {
    position: relative;
    width: 200px;
    height: 230px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, #FFF4E6, #FFE9C5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    transition: all 0.3s ease;
}

.hexagon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hexagon-item.gold {
    background: linear-gradient(135deg, #FFF4E6, #FFE9C5);
}

.hexagon-item.orange {
    background: linear-gradient(135deg, #FFE9D6, #FFD6B8);
}

.hexagon-item.gray {
    background: linear-gradient(135deg, #F5F5F5, #E8E8E8);
}

.hexagon-content {
    position: relative;
    z-index: 1;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Surgery Flow Cards */
.surgery-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 10px;
    margin: 40px 0;
}

.surgery-phase {
    background: var(--color-bg-white);
    border-radius: 20px;
    padding: 30px 20px 20px 20px;
    box-shadow: 0 8px 25px var(--shadow-light);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.surgery-phase:hover {
    transform: translateY(-8px);
}

.surgery-phase .phase-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    color: var(--color-bg-white);
    position: relative;
    z-index: 1;
}

.surgery-phase h3 {
    color: var(--color-main-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.surgery-phase p {
    text-align: center;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Different colors matching site theme: blue, dark blue, pink, gray */
.phase-1 {
    border-top: 5px solid var(--color-operace-card-1);
}

.phase-1 .phase-icon {
    background: linear-gradient(135deg, var(--color-operace-card-1), var(--color-operace-card-1-gradient));
}

.phase-1:hover {
    box-shadow: 0 12px 35px var(--shadow-button-hover);
}

.phase-2 {
    border-top: 5px solid var(--color-operace-card-2);
}

.phase-2 .phase-icon {
    background: linear-gradient(135deg, var(--color-operace-card-2), var(--color-operace-card-2-gradient));
}

.phase-2:hover {
    box-shadow: 0 12px 35px var(--shadow-heading);
}

.phase-3 {
    border-top: 5px solid var(--color-operace-card-3);
}

.phase-3 .phase-icon {
    background: linear-gradient(135deg, var(--color-operace-card-3), var(--color-operace-card-3-gradient));
}

.phase-3:hover {
    box-shadow: 0 12px 35px var(--shadow-operace);
}

.phase-4 {
    border-top: 5px solid var(--color-operace-card-4);
}

.phase-4 .phase-icon {
    background: linear-gradient(135deg, var(--color-operace-card-4), var(--color-operace-card-4-gradient));
}

.phase-4:hover {
    box-shadow: 0 12px 35px var(--shadow-pooperaci);
}

.surgery-connector {
    color: #ccc;
    font-size: 28px;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Important Dates Section */

.important-dates-form {
    background: var(--color-bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--color-predoperaci-main);
    margin-bottom: 40px;
}

.important-dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.date-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-field:last-child {
    margin-bottom: 0;
}

.date-field label {
    font-size: 1.1rem;
    color: var(--color-main-heading);
    font-weight: 600;
}

.date-input {
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--color-border-light);
    border-radius: 6px;
    background: var(--color-bg-white);
    color: var(--color-text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.date-input:focus {
    outline: none;
    border-color: var(--color-predoperaci-main);
    box-shadow: 0 0 0 3px rgba(65, 171, 230, 0.1);
}

.date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.date-input::-webkit-calendar-picker-indicator:hover {
    background: rgba(65, 171, 230, 0.1);
}

/* Tablet responsive - 2 columns */
@media (max-width: 1200px) {
    .surgery-flow {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .surgery-phase {
        min-height: auto;
    }
    
    .surgery-connector {
        display: none;
    }
}

/* Mobile responsive - 1 column */
@media (max-width: 768px) {
    .surgery-flow {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .surgery-phase {
        padding: 25px 15px;
    }
    
    .surgery-phase .phase-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .surgery-phase h3, .complication-card h3, .movements-card h3, .hexagon-advice h3, .checklist h3 {
        font-size: 1.25rem;
    }

    .text-section h3 {
        font-size: 1.5rem;
    }

    h2, .section-card h3 {
        font-size: 1.75rem;
    }

    .text-section h4, .info-box h4 {
        font-size: 1.125rem;
    }
    
    .surgery-phase p {
        font-size: 0.9rem;
    }

    .hexagon-advice {
        padding: 15px;
    }

    /* Important Dates Mobile */
    .important-dates-form {
        padding: 30px 20px;
    }

    .date-field label {
        font-size: 1rem;
    }

    .date-input {
        font-size: 0.95rem;
        padding: 10px 14px;
    }
}

/* Minimal Timeline */
.minimal-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    max-width: 100%;
    padding-top: 50px; /* Space for tooltips */
    gap: 0; /* Default no gap for desktop space-between */
}

.minimal-timeline::before {
    content: '';
    position: absolute;
    top: calc(50px + 15px); /* Adjusted for padding-top */
    left: var(--timeline-line-left, 75px);
    width: var(--timeline-line-width, calc(100% - 150px));
    height: 2px;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 100%);
    z-index: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-step:hover .step-label {
    color: white;
    opacity: 1;
}

.timeline-step:hover::after {
    opacity: 1;
    visibility: visible;
}

.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.step-label {
    margin-top: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.2;
    max-width: 120px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

/* Tooltip */
.timeline-step::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.timeline-step::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

/* Tablet responsive - Medium screens */
@media (max-width: 1024px) and (min-width: 769px) {
    .minimal-timeline {
        padding-top: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        justify-content: center;
        gap: 15px;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    }
    
    .minimal-timeline::-webkit-scrollbar {
        height: 6px;
    }
    
    .minimal-timeline::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }
    
    .minimal-timeline::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
    
    .minimal-timeline::before {
        top: calc(20px + 14px); /* Adjusted for reduced padding */
    }
    
    .timeline-step {
        min-width: 100px;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    /* Disable tooltips on tablet too to prevent issues */
    .timeline-step::after,
    .timeline-step::before {
        display: none !important;
    }

    .movements-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .movements-card {
        padding: 30px 20px;
    }

    .movement-icon img {
        width: 110px;
    }
}

@media (max-width: 768px) {
    .hexagon-item {
        width: 150px;
        height: 170px;
        padding: 20px;
    }
    
    .hexagon-content {
        font-size: 0.85rem;
    }
    
    /* Minimal Timeline Mobile */
    .minimal-timeline {
        padding: 20px 10px 10px 10px; /* Reduced padding since tooltips are disabled */
        overflow-x: auto;
        overflow-y: hidden; /* Prevent vertical scrolling completely */
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        gap: 20px;
        /* Allow content to extend beyond viewport */
        white-space: nowrap;
        /* Smooth scrolling */
        scroll-behavior: smooth;
        /* Custom scrollbar styling */
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    }
    
    /* Webkit scrollbar styling */
    .minimal-timeline::-webkit-scrollbar {
        height: 6px;
    }
    
    .minimal-timeline::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }
    
    .minimal-timeline::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
    
    .minimal-timeline::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
    
    /* Line position will be calculated by JavaScript based on actual step positions */
    .minimal-timeline::before {
        /* JavaScript will set --timeline-line-left and --timeline-line-width */
        top: calc(20px + 12px); /* Adjusted for reduced padding (20px) + half dot height (12px) */
    }
    
    .timeline-step {
        min-width: 90px;
        flex-shrink: 0; /* Prevent shrinking */
    }
    
    .step-label {
        font-size: 0.7rem;
        max-width: 90px;
        white-space: normal;
    }
    
    .step-dot {
        width: 24px;
        height: 24px;
    }
    
    /* Disable tooltips on mobile to prevent vertical scrolling issues */
    .timeline-step::after,
    .timeline-step::before {
        display: none !important;
    }

    .complication-card {
        padding: 15px;
    }

    .movements-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .movements-card {
        padding: 25px 20px;
    }

    .movement-icon img {
        width: 100px;
    }

    .checklist-items li {
        padding: 10px 0;
    }

    .important-dates-form {
        padding: 20px;
    }

    .important-dates-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   HEXAGON CORNER DECORATION
   ======================================== */
/* Subtle hexagon decoration inspired by brochure design */
.hexagon-decoration {
    position: absolute;
    top: -50px;
    right: -60px;
    width: 250px;
    height: 250px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}

/* Left-side variant */
.hexagon-decoration.left {
    right: auto;
    left: -60px;
}

/* SVG hexagon will be inline in HTML for proper rendering */
.hexagon-decoration svg {
    width: 100%;
    height: 100%;
}

/* Adjust color/opacity based on parent section */
.content-header.about .hexagon-decoration,
.content-header.faq .hexagon-decoration,
.content-header.downloads .hexagon-decoration,
.content-header.contacts .hexagon-decoration,
.content-header.before .hexagon-decoration,
.content-header.during .hexagon-decoration,
.content-header.after .hexagon-decoration {
    opacity: 0.15;
}

/* Ensure content-header has position relative for absolute positioning */
.content-header {
    position: relative;
    overflow: hidden; /* Prevent hexagon from causing horizontal scroll */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hexagon-decoration {
        width: 200px;
        height: 200px;
        top: -40px;
        right: -50px;
        opacity: 0.08;
    }
    
    .hexagon-decoration.left {
        right: auto;
        left: -50px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hexagon-decoration {
        width: 150px;
        height: 150px;
        top: -30px;
        right: -40px;
        opacity: 0.06;
    }
    
    .hexagon-decoration.left {
        right: auto;
        left: -40px;
    }
}

/* ==========================================
   DOWNLOADS PAGE STYLES
   ========================================== */

.downloads-container {
    padding: 40px 0 60px 0;
    margin: 0 auto;
}

.downloads-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 30px;
    background: var(--color-bg-white);
    box-shadow: 0 5px 15px var(--shadow-light);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-main-heading);
    border-radius: 15px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--color-text-primary);
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

/* File type colors - using existing palette */
.download-card[data-type="pdf"] {
    border-left-color: var(--color-operace-main);
}
.download-card[data-type="pdf"] .download-icon {
    color: var(--color-operace-main);
}

.download-card[data-type="word"] {
    border-left-color: var(--color-operaci-main);
}
.download-card[data-type="word"] .download-icon {
    color: var(--color-operaci-main);
}

.download-card[data-type="excel"] {
    border-left-color: var(--color-pooperaci-hexagon-brightteal);
}
.download-card[data-type="excel"] .download-icon {
    color: var(--color-pooperaci-hexagon-brightteal);
}

.download-card[data-type="image"] {
    border-left-color: var(--color-predoperaci-hexagon-orange);
}
.download-card[data-type="image"] .download-icon {
    color: var(--color-predoperaci-hexagon-orange);
}

.download-card[data-type="link"] {
    border-left-color: var(--color-predoperaci-main);
}
.download-card[data-type="link"] .download-icon {
    color: var(--color-predoperaci-main);
}

.download-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.8rem;
    color: var(--color-main-heading);
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--color-text-primary);
}

.download-size,
.download-link {
    color: var(--color-text-secondary);
    margin: 0;
}

.download-action {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-gray, #f0f0f0);
    color: var(--color-main-heading);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.download-card:hover .download-action {
    background: var(--color-main-button);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .downloads-container {
        padding: 30px 15px;
    }
    
    .download-card {
        padding: 16px 20px;
        gap: 16px;
    }
    
    .download-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    
    .download-info h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .download-card {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .download-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .download-action {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}