/* ===========================================
   HP Base — Typografie, základní elementy
   =========================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    line-height: 1.7;
    color: var(--text-muted);
}

a {
    color: var(--primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* === Badge system === */
.skill-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.4rem 0.2rem;
    transition: all 0.2s ease;
}

.skill-badge--primary {
    background: var(--primary-light);
    color: var(--primary);
}

.skill-badge--accent {
    background: #fef3c7;
    color: #92400e;
}

.skill-badge--success {
    background: #d1fae5;
    color: #065f46;
}

.skill-badge--info {
    background: #e0e7ff;
    color: #3730a3;
}

.skill-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.skill-badge__info {
    font-size: 0.65rem;
    opacity: 0.55;
    margin-left: 0.15rem;
    vertical-align: middle;
}

.skill-badge[data-bs-toggle="tooltip"] {
    cursor: help;
}

/* Tooltip styling */
.skill-tooltip .tooltip-inner {
    max-width: 280px;
    font-size: 0.78rem;
    text-align: left;
    padding: 0.45rem 0.7rem;
    line-height: 1.45;
    background: #1e293b;
}

/* === Sekce label === */
.section-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-title {
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-muted);
    font-weight: 400;
    max-width: 600px;
}

/* === Utility === */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-light), #ede9fe);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* === Animace === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* ===========================================
   Cookie Consent / GDPR Banner
   =========================================== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1e293b;
    color: #f1f5f9;
    padding: 16px 24px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.cookie-consent-banner--visible {
    transform: translateY(0);
}

.cookie-consent-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-consent-banner__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #cbd5e1;
    flex: 1;
    min-width: 240px;
}

.cookie-consent-banner__btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-consent-banner__btn:hover {
    background: #1d4ed8;
}

@media (max-width: 575px) {
    .cookie-consent-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-banner__btn {
        width: 100%;
        justify-content: center;
    }
}
