/* ===================================
   STUDY DETAIL PAGE STYLES
   Prefix: sd- (study detail)
   Methodology: BEM
   =================================== */

/* Reset & Base pro detail studie */
.sd-page {
    min-height: 100vh;
    background: #ffffff;
    color: #0A0A0A;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

/* Container */
.sd-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER NAVIGATION
   =================================== */
.sd-nav {
    background: #ffffff;
    border-bottom: 1px solid #E5E5E5;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.sd-nav__back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0891B2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    padding: 8px 12px;
    border-radius: 4px;
}

.sd-nav__back:hover {
    background: #F0F9FF;
    transform: translateX(-2px);
}

.sd-nav__back-icon {
    width: 20px;
    height: 20px;
}

.sd-nav__logo {
    font-size: 20px;
    font-weight: 600;
    color: #0A0A0A;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sd-nav__logo-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #0891B2;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
}

/* ===================================
   ARTICLE HEADER - ZMENŠENÉ PÍSMO
   =================================== */
.sd-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid #E5E5E5;
}

.sd-header__title {
    font-size: 36px;  /* ZMĚNĚNO z 42px */
    font-weight: 700;
    line-height: 1.2;
    color: #0A0A0A;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
}

.sd-header__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.sd-header__author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sd-header__author-link {
    color: #0891B2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.sd-header__author-link:hover {
    color: #0E7490;
    text-decoration: underline;
}

.sd-header__separator {
    color: #CCC;
}

.sd-header__date {
    color: #666;
}

.sd-header__reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
}

.sd-header__summary {
    font-size: 18px;  /* ZMĚNĚNO z 20px */
    line-height: 1.6;
    color: #4B5563;
    font-weight: 400;
}

/* ===================================
   ARTICLE CONTENT - ZMENŠENÉ PÍSMO
   =================================== */
.sd-content {
    padding: 60px 0;
    font-size: 16px;  /* ZMĚNĚNO z 18px */
    line-height: 1.7;  /* ZMĚNĚNO z 1.8 */
    color: #1F2937;
}

.sd-content h2 {
    font-size: 28px;  /* ZMĚNĚNO z 32px */
    font-weight: 600;
    color: #0A0A0A;
    margin: 48px 0 24px 0;
    line-height: 1.3;
}

.sd-content h3 {
    font-size: 22px;  /* ZMĚNĚNO z 24px */
    font-weight: 600;
    color: #0A0A0A;
    margin: 36px 0 16px 0;
    line-height: 1.4;
}

.sd-content p {
    margin: 0 0 24px 0;
}

.sd-content ul,
.sd-content ol {
    margin: 0 0 24px 0;
    padding-left: 32px;
}

.sd-content li {
    margin: 0 0 12px 0;
}

.sd-content blockquote {
    border-left: 4px solid #0891B2;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: #4B5563;
}

.sd-content strong {
    font-weight: 600;
    color: #0A0A0A;
}

.sd-content a {
    color: #0891B2;
    text-decoration: underline;
    transition: color 0.2s;
}

.sd-content a:hover {
    color: #0E7490;
}

/* ===================================
   DOWNLOADS & ACTIONS - UPRAVENÉ POPISKY
   =================================== */
.sd-actions {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 32px;
    margin: 60px 0;
}

.sd-actions__title {
    font-size: 20px;
    font-weight: 600;
    color: #0A0A0A;
    margin: 0 0 24px 0;
}

/* Přidáme popisný text */
.sd-actions__description {
    font-size: 14px;
    color: #666;
    margin: -16px 0 20px 0;
    line-height: 1.5;
}

.sd-actions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Buttons */
.sd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.sd-btn--primary {
    background: #0891B2;
    color: white;
}

.sd-btn--primary:hover {
    background: #0E7490;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.2);
}

.sd-btn--secondary {
    background: white;
    color: #0891B2;
    border: 1px solid #0891B2;
}

.sd-btn--secondary:hover {
    background: #F0F9FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.1);
}

.sd-btn__icon {
    width: 20px;
    height: 20px;
}

/* Audio Player */
.sd-audio {
    background: white;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
}

.sd-audio__title {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0 0 12px 0;
}

.sd-audio__player {
    width: 100%;
    height: 48px;
}

.sd-audio__duration {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* ===================================
   SHARING SECTION
   =================================== */
.sd-share {
    padding: 32px;
    background: white;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    margin: 40px 0;
}

.sd-share__title {
    font-size: 16px;
    font-weight: 600;
    color: #0A0A0A;
    margin: 0 0 16px 0;
}

.sd-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sd-share__btn {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #E5E5E5;
    background: white;
    color: #4B5563;
}

.sd-share__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sd-share__btn--linkedin:hover {
    background: #0077B5;
    color: white;
    border-color: #0077B5;
}

.sd-share__btn--facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.sd-share__btn--twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.sd-share__btn--reddit:hover {
    background: #FF4500;
    color: white;
    border-color: #FF4500;
}

/* ===================================
   TAXONOMY (Categories & Tags)
   =================================== */
.sd-taxonomy {
    border-top: 1px solid #E5E5E5;
    padding: 40px 0;
    margin-top: 60px;
}

.sd-taxonomy__group {
    margin-bottom: 24px;
}

.sd-taxonomy__label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sd-taxonomy__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sd-taxonomy__item {
    display: inline-block;
    padding: 6px 14px;
    background: #F3F4F6;
    color: #4B5563;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #E5E7EB;
    transition: all 0.2s;
}

.sd-taxonomy__item:hover {
    background: #0891B2;
    color: white;
    border-color: #0891B2;
    transform: translateY(-1px);
}

/* ===================================
   FOOTER
   =================================== */
.sd-footer {
    background: #F8F9FA;
    border-top: 1px solid #E5E5E5;
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
}

.sd-footer__text {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.sd-footer__link {
    color: #0891B2;
    text-decoration: none;
}

.sd-footer__link:hover {
    text-decoration: underline;
}

/* ===================================
   RESPONSIVE DESIGN - UPRAVENÉ VELIKOSTI
   =================================== */
@media (max-width: 768px) {
    .sd-container {
        padding: 0 16px;
    }
    
    .sd-header__title {
        font-size: 28px;  /* ZMĚNĚNO z 32px */
    }
    
    .sd-header__meta {
        font-size: 13px;
    }
    
    .sd-header__summary {
        font-size: 16px;  /* ZMĚNĚNO z 18px */
    }
    
    .sd-content {
        font-size: 15px;  /* ZMĚNĚNO z 16px */
        padding: 40px 0;
    }
    
    .sd-content h2 {
        font-size: 24px;  /* ZMĚNĚNO z 26px */
        margin: 36px 0 20px 0;
    }
    
    .sd-content h3 {
        font-size: 20px;
        margin: 28px 0 16px 0;
    }
    
    .sd-actions__grid {
        grid-template-columns: 1fr;
    }
    
    .sd-share__buttons {
        flex-direction: column;
    }
    
    .sd-share__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .sd-nav,
    .sd-actions,
    .sd-share,
    .sd-footer {
        display: none !important;
    }
    
    .sd-header {
        border-bottom: 2px solid #000;
    }
    
    .sd-content {
        font-size: 12pt;
    }
    
    .sd-content a {
        color: #000;
        text-decoration: underline;
    }
}

/* ===================================
   UTILITIES
   =================================== */
.sd-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.sd-mt-4 {
    margin-top: 16px;
}

.sd-mb-4 {
    margin-bottom: 16px;
}
