/*
Theme Name:  Astra Child
Theme URI:   https://wpastra.com/
Description: Astra Child Theme
Author:      Vaše Meno
Author URI:  https://vasweb.sk
Template:    astra
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* Sem môžete písať vlastné CSS, ak budete chcieť */

/* --- Slovník Pojmov --- */

.slovnik-archive-wrapper {
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 6rem;
    font-family: 'Outfit', sans-serif;
    color: oklch(0.2 0.02 260); /* #1a1a1a */
}

.slovnik-header {
    margin-bottom: 2rem;
}

.slovnik-title {
    font-size: 3rem;
    font-weight: 800;
    color: oklch(0.15 0.02 260); /* #0f172a */
    margin: 0;
    letter-spacing: -1.5px;
}

.slovnik-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: oklch(1 0 0 / 75%);
    backdrop-filter: saturate(180%) blur(16px);
    padding: 0.75rem;
    margin-bottom: 5rem;
    border-bottom: 1px solid oklch(0 0 0 / 3%);
    border-radius: .75rem;
}

/* Adjust top position if admin bar is present */
.admin-bar .slovnik-nav {
    top: 32px;
}

.slovnik-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0;
    padding: 0;
}

.slovnik-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    color: oklch(0.45 0.02 260);
    text-decoration: none;
    border-radius: 50%;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.slovnik-nav-link:hover {
    color: oklch(0.60 0.258 26.15); /* Primary red */
    background: oklch(0.60 0.258 26.15 / 6%);
    transform: scale(1.15);
}

.slovnik-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    background: oklch(0.60 0.258 26.15);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s ease;
}

.slovnik-nav-link:hover::after {
    opacity: 1;
    transform: translateY(0);
}


.slovnik-group-section {
    margin-bottom: 5rem;
    scroll-margin-top: 120px;
}

.slovnik-letter-header {
    border-left: 3px solid oklch(0.60 0.258 26.15); /* Primary red */
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}

.slovnik-letter {
    font-size: 2rem;
    font-weight: 800;
    color: oklch(0.15 0.02 260);
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
}

.slovnik-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-left: 0;
}

@media (max-width: 1100px) {
    .slovnik-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .slovnik-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.slovnik-item {
    position: relative;
    border-bottom: none;
}

.slovnik-item-link {
    background: oklch(0.98 0.01 260); /* Subtle light grey/white */
    color: oklch(0.35 0.05 260);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 12px;
    border: 1px solid oklch(0 0 0 / 3%);
    height: 100%;
}

.slovnik-item-link::after {
    content: '→';
    font-size: 1rem;
    color: oklch(0.615 0.178 251.2); /* Secondary blue */
    opacity: 0.3;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.slovnik-item-link:hover {
    background: oklch(1 0 0);
    color: oklch(0.15 0.02 260);
    border-color: oklch(0.60 0.258 26.15 / 20%);
    box-shadow: 0 10px 25px -5px oklch(0 0 0 / 5%);
    transform: translateY(-2px);
}

.slovnik-item-link:hover::after {
    opacity: 1;
    color: oklch(0.60 0.258 26.15);
    transform: translateX(4px);
}

/* --- Slovník Detail Pojmu --- */

.slovnik-single-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 4rem auto 8rem;
    font-family: 'Outfit', sans-serif;
}

.slovnik-breadcrumb {
    margin-bottom: 3rem;
}

.slovnik-back-link {
    color: oklch(0.5 0.05 260);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    background: oklch(0.98 0.01 260);
    border-radius: 8px;
}

.slovnik-back-link:hover {
    color: oklch(0.60 0.258 26.15); /* Primary red */
    background: oklch(0.60 0.258 26.15 / 5%);
    transform: translateX(-5px);
}

.slovnik-single-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.slovnik-term-letter {
    width: 80px;
    height: 80px;
    background: oklch(0.60 0.258 26.15); /* Primary red */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    border-radius: 20px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px -10px oklch(0.60 0.258 26.15 / 40%);
}

.slovnik-single-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: oklch(0.15 0.02 260);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -2px;
}

.slovnik-definition-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: oklch(0.60 0.258 26.15);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slovnik-definition-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: oklch(0 0 0 / 5%);
}

.slovnik-content .entry-content {
    font-size: 1.25rem;
    line-height: 1.8;
    color: oklch(0.3 0.02 260);
    font-weight: 300;
}

.slovnik-single-footer {
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid oklch(0 0 0 / 5%);
}

.slovnik-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-btn {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: oklch(0.98 0.01 260);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-btn.next {
    text-align: right;
    align-items: flex-end;
}

.nav-btn:hover {
    background: white;
    border-color: oklch(0.60 0.258 26.15 / 15%);
    box-shadow: 0 15px 35px -10px oklch(0 0 0 / 8%);
    transform: translateY(-4px);
}

.nav-label {
    font-size: 0.75rem;
    color: oklch(0.5 0.05 260);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: oklch(0.15 0.02 260);
}

.nav-btn:hover .nav-title {
    color: oklch(0.60 0.258 26.15);
}

@media (max-width: 768px) {
    .slovnik-single-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .slovnik-single-title {
        font-size: 2.5rem;
    }
    .slovnik-post-nav {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}