/*
Theme Name: Twentytwentyfour Child
Template: twentytwentyfour
Description: Child theme
Author: EC
Version: 1.0
*/


/* BUTTONS ON HOVER */
.wp-block-button__link:hover,
.wp-element-button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #2c2d3a ; /* Temno siva barva ozadja na hover */
    color: #ffffff ;           /* Razločna bela barva besedila */
    border-color: #2c2d3a ;
    transform: translateY(-2px);         /* Blag dvig gumba za lepši občutek */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) ;
    transition: all 0.2s ease-in-out ;
}


/* Remove LINK underline & set hover color by EC */
a,
a:hover,
.wp-block-navigation a {
    text-decoration: none ;
    border-bottom: none ;
    box-shadow: none ;
}


/* Links and navigation hover color by EC */
a:hover,
a:hover span,
.wp-block-navigation a.wp-block-navigation-item__content:hover,
.wp-block-navigation a.wp-block-navigation-item__content:hover span {
    color: #48ae4d ;
    transition: color 0.2s ease-in-out;
}


/* Columns structure 6 icons by EC */
.wp-block-columns .wp-block-columns {
    gap: 20px ;
    margin-bottom: 30px ;
}

/* Category icons width and layout by EC */
.book-icon-wrapper svg,
.wp-block-columns .book-icon-wrapper svg {
    width: 100% ;
    max-width: 100% ; /* Omogoči ikoni, da zapolni celoten podstolpec */
    height: auto ;
    display: block ;
    margin: 0 auto ;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) ;
}

/* Hover effect on larger category cards by EC */
.book-icon-wrapper:hover svg {
    transform: translateY(-8px) scale(1.04) ;
}


/* SVG Book Icon display and sizing by EC */
.book-icon-wrapper svg {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Colors for left and right page by EC */
.book-icon-wrapper #left-page path {
    fill: #3f4051;
    transition: fill 0.3s ease;
}

.book-icon-wrapper #right-page path {
    fill: #48ae4d;
    transition: fill 0.3s ease;
}

/* Hover animation & color change by EC */
.book-icon-wrapper:hover svg {
    transform: translateY(-6px) scale(1.05);
}

.book-icon-wrapper:hover #right-page path {
    fill: #388e3c;
}


/* ==========================================================
   CATEGORY CARDS & INDIVIDUAL ANIMATIONS BY EC
   ========================================================== */

/* 1. Container for 6 items - increase gap between cards */
.wp-block-columns .wp-block-columns {
    gap: 20px !important;
    margin-bottom: 30px !important;
}

/* 2. Base Category Card Styling (BREZ OBROB) */
.book-category-card {
    background-color: #f8f9fa; /* Zelo blago sivo ozadje */
    border: none !important;    /* PERMANENTNO ODSTRANJEN ROB */
    outline: none !important;
    border-radius: 10px;
    padding: 20px 10px 10px 10px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 3. Icon styling within card */
.book-category-card .book-icon-wrapper svg {
    width: 100% ;
    max-width: 120px ;
    height: auto ;
        margin-bottom: 0px ;
}

/* 4. Text styling within card */
.book-category-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.book-category-text .lang-sl {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.book-category-text .lang-de {
    font-weight: 400;
    font-size: 12px;
    color: #777;
}

/* 5. HOVER EFFECT */
.book-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.16);
    background-color: #ffffff;
    border: none ;
    outline: none ;
}

/* Base style for left page ( dark gray) */
.book-category-card #left-page path {
    fill: #3f4051;
}

/* --- SPECIFIC COLORS FOR CATEGORIES (ONLY DESNA STRAN) --- */
.book-category-card.green #right-page path { fill: #1fbf67; }
.book-category-card.pink #right-page path { fill: #e54c7c; }
.book-category-card.blue #right-page path { fill: #3b809b; }
.book-category-card.orange #right-page path { fill: #ef7e0c; }
.book-category-card.violet #right-page path { fill: #996699; }
.book-category-card.yellow #right-page path { fill: #d8d816; }
.book-category-card.limeta #right-page path { fill: #99cc33; }
.book-category-card.red #right-page path { fill: #e51749; }




