/* ============================================
   MAJYA - Hlavní CSS soubor
   Verze: 2.0 - s rozbalovacím popisem
   ============================================ */

/* --------------------------------------------
   ZÁKLADNÍ STYLY BLOG CONTAINERU
   -------------------------------------------- */
.blog-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: Roboto, sans-serif;
    line-height: 1.6;
    color: #6b6b77;
}

.blog-header {
    text-align: center;
    background: linear-gradient(135deg, #f4fcff 0%, #e8f8ff 100%);
    color: black;
    padding: 40px 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,180,235,0.15);
}

.blog-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
    color: #2c3e50;
}

.blog-header .subtitle {
    margin-top: 15px;
    font-size: 1.2em;
    opacity: 0.85;
    color: #495057;
}

/* --------------------------------------------
   SEKCE A BOXY
   -------------------------------------------- */
.section-box {
    background: #fff;
    border: 1px solid #d3f4ff;
    border-radius: 10px;
    margin-bottom: 25px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.section-title {
    background: linear-gradient(135deg, #f4fcff 0%, #e0f7ff 100%);
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: bold;
    padding: 18px 20px;
    margin: -30px -30px 25px -30px;
    border-radius: 10px 10px 0 0;
    border-bottom: 3px solid #00b1eb;
}

.section-subtitle {
    color: #00b1eb;
    font-size: 1.3em;
    font-weight: bold;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #d3f4ff;
}

/* --------------------------------------------
   SPECIÁLNÍ BOXY (HIGHLIGHT, TIP, INFO)
   -------------------------------------------- */
.highlight-box {
    background: #d3f4ff;
    border-left: 5px solid #00b1eb;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(0,177,235,0.1);
}

.tip-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 18px;
    margin: 20px 0;
    position: relative;
    padding-left: 50px;
}

.tip-box::before {
    content: "💡";
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 1.5em;
}

.info-box {
    background: #e7f3ff;
    border: 2px solid #2196F3;
    border-radius: 8px;
    padding: 18px;
    margin: 20px 0;
    position: relative;
    padding-left: 50px;
}

.info-box::before {
    content: "ℹ️";
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 1.5em;
}

/* --------------------------------------------
   PRODUKTY A SEZNAMY
   -------------------------------------------- */
.product-showcase {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 12px 0 12px 35px;
    position: relative;
    border-bottom: 1px solid #e9ecef;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li::before {
    content: "✨";
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 1.2em;
}

/* --------------------------------------------
   FAQ SEKCE
   -------------------------------------------- */
.faq-item {
    background: #f8f9fa;
    border-left: 4px solid #00b1eb;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 0 5px 5px 0;
}

.faq-question {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.05em;
}

/* --------------------------------------------
   CTA A KONTAKT
   -------------------------------------------- */
.cta-box {
    background: linear-gradient(135deg, #00b1eb 0%, #0099cc 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,177,235,0.3);
}

.cta-button {
    display: inline-block;
    background: white;
    color: #00b1eb;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 15px;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.contact-footer {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-top: 40px;
    text-align: center;
    border: 2px solid #e9ecef;
}

.divider {
    height: 3px;
    background: linear-gradient(to right, transparent, #00b1eb, transparent);
    margin: 30px 0;
    border: none;
}

/* --------------------------------------------
   GALERIE GRAVÍROVÁNÍ
   -------------------------------------------- */
.engraving-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f8f9fa;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,177,235,0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    text-align: center;
    padding: 12px;
    margin: 0;
    background: linear-gradient(135deg, #f4fcff 0%, #e8f8ff 100%);
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95em;
    border-top: 2px solid #d3f4ff;
}

/* ============================================
   ROZBALOVACÍ POPIS KATEGORIE
   ============================================ */

/* Wrapper pro rozbalovací obsah */
.expandable-content-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out;
}

/* Sbalený stav */
.expandable-content-wrapper.collapsed {
    max-height: 600px;
}

/* Rozbalený stav */
.expandable-content-wrapper.expanded {
    max-height: none;
}

/* Gradient overlay - přechod do ztracena */
.expandable-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 25%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(255, 255, 255, 0.95) 75%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
    z-index: 10;
}

/* Skrytí gradientu při rozbalení */
.expandable-content-wrapper.expanded .expandable-gradient {
    opacity: 0;
    visibility: hidden;
}

/* Container pro tlačítko */
.expand-button-container {
    text-align: center;
    padding: 25px 0 35px;
    background: #fff;
    position: relative;
    z-index: 20;
}

/* Hlavní tlačítko pro rozbalení/sbalení */
.expand-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #00b1eb 0%, #0095c8 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 177, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expand-toggle-btn:hover {
    background: linear-gradient(135deg, #0095c8 0%, #007ba3 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 177, 235, 0.4);
}

.expand-toggle-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 177, 235, 0.3);
}

.expand-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 177, 235, 0.3), 0 4px 15px rgba(0, 177, 235, 0.3);
}

/* Ikona šipky v tlačítku */
.expand-toggle-btn .btn-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 14px;
}

/* ODSTRANĚNO - způsobovalo konflikt s JavaScript změnou ikony */
/* 
.expand-toggle-btn.expanded .btn-icon {
    transform: rotate(180deg);
}
*/

/* Počítadlo skrytých slov (volitelné) */
.expand-toggle-btn .word-count {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
    margin-left: 5px;
}

/* ============================================
   RESPONZIVNÍ DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .engraving-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .expandable-content-wrapper.collapsed {
        max-height: 550px;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .blog-container {
        padding: 10px;
    }
    
    .blog-header h1 {
        font-size: 1.8em;
    }
    
    .blog-header {
        padding: 30px 15px;
    }
    
    .section-box {
        padding: 20px;
    }
    
    .section-title {
        margin: -20px -20px 20px -20px;
        font-size: 1.3em;
        padding: 15px;
    }
    
    .engraving-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Rozbalovací popis - mobil */
    .expandable-content-wrapper.collapsed {
        max-height: 450px;
    }
    
    .expandable-gradient {
        height: 120px;
    }
    
    .expand-button-container {
        padding: 20px 0 30px;
    }
    
    .expand-toggle-btn {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* Extra malé obrazovky */
@media (max-width: 576px) {
    .gallery-caption {
        font-size: 0.9em;
        padding: 10px;
    }
    
    .blog-header h1 {
        font-size: 1.5em;
    }
    
    .section-subtitle {
        font-size: 1.1em;
    }
    
    /* Rozbalovací popis - extra malé obrazovky */
    .expandable-content-wrapper.collapsed {
        max-height: 380px;
    }
    
    .expand-toggle-btn {
        padding: 12px 24px;
        font-size: 13px;
        width: calc(100% - 40px);
        max-width: 300px;
    }
}

/* ============================================
   ANIMACE
   ============================================ */
@keyframes fadeInContent {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

.expandable-content-wrapper.expanded .blog-container {
    animation: fadeInContent 0.4s ease-out;
}

/* Jemná animace pro tlačítko při načtení */
@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 177, 235, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 177, 235, 0.5);
    }
}

.expand-toggle-btn {
    animation: pulseButton 2s ease-in-out infinite;
}

.expand-toggle-btn:hover {
    animation: none;
}
