/**
 * DS Nagrade Toggle - Frontend Styles
 * Version: 1.0.2
 */

/* Main Wrapper */
.ds-nagrade-toggle-wrapper {
    width: 100%;
    position: relative;
}

/* Items Container */
.ds-nagrade-items {
    position: relative;
}

/* Single Item */
.ds-nagrade-item {
    position: relative;
    border-bottom: var(--line-width, 1px) solid var(--line-color, #000);
    margin-bottom: var(--row-spacing, 0);
}

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

/* Header (Click area) */
.ds-nagrade-header {
    position: relative;
    cursor: pointer;
    padding: var(--title-padding, 40px 0);
    transition: transform var(--animation-duration, 300ms) ease;
    transform-origin: left center;
}

.ds-nagrade-header:hover {
    transform: scale(1.02);
}

/* Remove focus outline */
.ds-nagrade-header:focus {
    outline: none;
}

/* Title (Year) */
.ds-nagrade-title {
    font-family: 'Brule', sans-serif;
    font-size: var(--year-font-size-desktop, 100px);
    font-weight: 600;
    color: var(--year-color, #000);
    line-height: 1;
    margin: 0;
    position: relative;
    transition: opacity var(--animation-duration, 300ms) ease;
}

.ds-nagrade-item.expanded .ds-nagrade-title {
    opacity: 0.9;
}

/* Content Container */
.ds-nagrade-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--animation-duration, 300ms) ease;
    position: relative;
}

.ds-nagrade-item.expanded .ds-nagrade-content {
    max-height: 5000px; /* Will be calculated dynamically via JS */
}

/* Content Inner */
.ds-nagrade-content-inner {
    padding: var(--content-padding, 30px 0 40px 0);
    color: var(--content-color, #000);
    font-size: var(--content-font-size-desktop, 14px);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--animation-duration, 300ms) ease,
                transform var(--animation-duration, 300ms) ease;
}

.ds-nagrade-item.expanded .ds-nagrade-content-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Content Typography */
.ds-nagrade-content-inner p {
    font-size: inherit;
    line-height: 1.3;
    margin: 0;
    padding-bottom: 14px;
}

.ds-nagrade-content-inner p:last-child {
    margin-bottom: 0;
}

/* Strong text */
.ds-nagrade-content-inner strong,
.ds-nagrade-content-inner b {
    font-weight: 700;
}

/* Italic text */
.ds-nagrade-content-inner em,
.ds-nagrade-content-inner i {
    font-style: italic;
}

/* Underline */
.ds-nagrade-content-inner u {
    text-decoration: underline;
}

/* Links */
.ds-nagrade-content-inner a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.ds-nagrade-content-inner a:hover {
    opacity: 0.7;
}

/* Lists */
.ds-nagrade-content-inner ul,
.ds-nagrade-content-inner ol {
    margin: 0 0 15px 20px;
    padding: 0;
}

.ds-nagrade-content-inner li {
    font-size: inherit;
    line-height: 1.6;
    margin-bottom: 5px;
}

/* Headings within content */
.ds-nagrade-content-inner h1,
.ds-nagrade-content-inner h2,
.ds-nagrade-content-inner h3,
.ds-nagrade-content-inner h4,
.ds-nagrade-content-inner h5,
.ds-nagrade-content-inner h6 {
    margin: 20px 0 10px 0;
    font-weight: 700;
}

.ds-nagrade-content-inner h1 { font-size: 1.5em; }
.ds-nagrade-content-inner h2 { font-size: 1.3em; }
.ds-nagrade-content-inner h3 { font-size: 1.15em; }
.ds-nagrade-content-inner h4 { font-size: 1.05em; }
.ds-nagrade-content-inner h5 { font-size: 1em; }
.ds-nagrade-content-inner h6 { font-size: 0.9em; }

/* Animation classes */
.ds-nagrade-item.animating .ds-nagrade-content {
    overflow: visible;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .ds-nagrade-title {
        font-size: var(--year-font-size-tablet, 70px) !important
    }

    .ds-nagrade-content-inner {
        font-size: var(--content-font-size-tablet, 14px);
    }
    .ds-nagrade-header {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .ds-nagrade-title {
        font-size: var(--year-font-size-mobile, 50px) !important
    }

    .ds-nagrade-content-inner {
        font-size: var(--content-font-size-mobile, 13px);
    }

    .ds-nagrade-header {
        padding: 30px 0 !important
    }

    .ds-nagrade-content-inner {
        padding: 20px 0 30px 0;
    }
}

/* Print styles */
@media print {
    .ds-nagrade-item {
        page-break-inside: avoid;
    }

    .ds-nagrade-content {
        max-height: none !important;
    }

    .ds-nagrade-content-inner {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* No JavaScript fallback */
.no-js .ds-nagrade-content {
    max-height: none;
}

.no-js .ds-nagrade-content-inner {
    opacity: 1;
    transform: none;
}

/* Loading state */
.ds-nagrade-toggle-wrapper.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Smooth height transition helper */
.ds-nagrade-content.measuring {
    position: absolute;
    visibility: hidden;
    height: auto;
    max-height: none;
}



.ds-nagrade-content-inner p strong {
    font-size: 16px !important;
    font-family: "Barlow" !important;
}

.ds-nagrade-content-inner p bold {
    font-size: 16px !important;
    font-family: "Barlow" !important;
}

.ds-nagrade-content-inner em {
    font-size: 16px !important;
    font-family: "Barlow" !important;
}


.ds-fadil-popis p {
    padding-bottom: 14px !important;
}