/*
 Theme Name:   Összkép design sablon
 Theme URI:    https://osszkepdesign.hu
 Description:  Egyedi GeneratePress child theme az Összkép projektnek.
 Author:       Összkép
 Template:     generatepress
 Version:      1.0.0
*/

/* Ide jöhetnek majd a saját CSS szabályaid */


@font-face {
    font-family: 'Satoshi Variable';
    /* Figyelj a pontos kis- és nagybetűre a fájlnévben! */
    src: url('https://osszkepdesign.hu/wp-content/themes/osszkep_child/fonts/Satoshi-Variable.woff2') format('woff2-variations'),
         url('https://osszkepdesign.hu/wp-content/themes/osszkep_child/fonts/Satoshi-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.custom-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}
.portfolio-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-info {
    padding: 20px;
    text-align: center;
}
.portfolio-title a {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

/* --- Összkép Custom TOC Design --- */

/* Eltávolítjuk a gomb alapértelmezett hover effektjeit */
.custom-toc .toc-toggle:hover, 
.custom-toc .toc-toggle:focus,
.custom-toc .toc-toggle:active {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    outline: none !important;
}

/* Ha a nyilacskára is rámennél, az se váltson színt */
.custom-toc .toc-toggle .arrow {
    background: none !important;
}

.custom-toc { 
    background-color: #b34a26!important; /* Terracotta szín */
    padding: 25px; 
    margin: 40px 0; 
    border-radius: 12px; 
    box-shadow: 0 12px 24px rgba(179, 74, 38, 0.15); 
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}

.toc-toggle { 
    background: none; 
    border: none; 
    font-weight: 700; 
    cursor: pointer; 
    width: 100%; 
    text-align: left; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-size: 1.1rem; 
    color: #ffffff !important;
    padding: 0; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

#toc-list { 
    margin-top: 20px; 
    list-style: none !important; 
    padding-left: 0 !important; 
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
    padding-top: 20px;
    display: block; /* Alapértelmezetten nyitva */
}

#toc-list li { 
    margin: 0 0 12px 0 !important; 
    line-height: 1.4; 
}

#toc-list a { 
    text-decoration: none; 
    color: rgba(255, 255, 255, 0.9) !important; 
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

#toc-list a:hover { 
    color: #ffffff !important; 
    padding-left: 5px; /* Pici mozgás hoverre */
}

/* Alpontok (H3) formázása */
.toc-level-3 { 
    margin-left: 20px !important; 
    font-size: 0.9em !important; 
    opacity: 0.85; 
}

.toc-level-3::before {
    content: "—";
    margin-right: 8px;
    opacity: 0.5;
}

/* Simább ugrás az oldalon belül */
html { 
    scroll-behavior: smooth; 
}

/* Mobil optimalizálás */
@media (max-width: 768px) {
    .custom-toc {
        padding: 20px;
    }
}
