/**
 * Ručně psané poznámky (Handwritten Notes)
 * Moderní marketingový prvek pro web katedry
 */

/* === Základní styly === */
.handwritten {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    line-height: 1.2;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.5px;
    -webkit-font-smoothing: antialiased;
}

.handwritten-note {
    position: absolute;
    font-family: 'Caveat', cursive;
    font-weight: 400;
    color: #0065BD;
    z-index: 5;
    white-space: nowrap;
    animation: fadeInNote 0.8s ease-out forwards;
    opacity: 0;
    letter-spacing: 0.5px;
    -webkit-font-smoothing: antialiased;
    transform: scaleX(0.95);
    -webkit-text-stroke: 0.2px currentColor;
}

/* === Různé velikosti poznámek === */
.note-sm { font-size: 1.2rem; }
.note-md { font-size: 1.8rem; }
.note-lg { font-size: 2.5rem; }
.note-xl { font-size: 3.2rem; }

/* === Barevné varianty === */
.note-blue { color: #0065BD; }
.note-red { color: #DC2626; }
.note-green { color: #059669; }
.note-orange { color: #D97706; }
.note-black { color: #1f2937; }
.note-purple { color: #7C3AED; }

/* === Rotace pro přirozený vzhled === */
.rotate-1 { transform: rotate(-2deg); }
.rotate-2 { transform: rotate(2deg); }
.rotate-3 { transform: rotate(-3deg); }
.rotate-4 { transform: rotate(3deg); }
.rotate-5 { transform: rotate(-1deg); }
.rotate-6 { transform: rotate(4deg); }

/* === Šipky === */
.arrow-note {
    position: relative;
}

.arrow-note::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background: currentColor;
    top: 50%;
    transform: translateY(-50%);
}

.arrow-right::after {
    left: 100%;
    margin-left: 10px;
}

.arrow-left::after {
    right: 100%;
    margin-right: 10px;
}

.arrow-down::after {
    width: 2px;
    height: 60px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
}

.arrow-up::after {
    width: 2px;
    height: 60px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
}

/* === Podtržení === */
.underline-note {
    position: relative;
    display: inline-block;
}

.underline-note::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: currentColor;
    transform: rotate(-1deg);
}

/* === Zvýraznění === */
.highlight-note {
    background: linear-gradient(180deg, transparent 60%, rgba(0, 101, 189, 0.2) 60%);
    padding: 0 8px;
}

/* === Kroužky/Bubbles === */
.circle-note {
    border: 3px solid currentColor;
    border-radius: 50%;
    padding: 15px 25px;
    white-space: normal;
    max-width: 150px;
    text-align: center;
}

/* === Ručně kreslené rámečky === */
.sketch-box {
    border: 2px solid currentColor;
    border-radius: 8px;
    padding: 10px 15px;
    position: relative;
    transform: rotate(-1deg);
}

.sketch-box::before {
    content: '';
    position: absolute;
    inset: -3px;
    border: 2px solid currentColor;
    border-radius: 8px;
    opacity: 0.3;
    transform: rotate(2deg);
}

/* === Matematické vzorce === */
.formula-note {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* === Animace === */
@keyframes fadeInNote {
    from {
        opacity: 0;
        transform: translateY(10px) rotate(0deg);
    }
    to {
        opacity: 0.85;
        transform: translateY(0) rotate(var(--rotation, 0deg));
    }
}

/* Zpoždění animací pro postupné zobrazení */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

/* === Responsivní design === */
/* Na tabletech zmenšit velikost */
@media (max-width: 992px) {
    .handwritten-note {
        font-size: 0.9em;
    }
    .note-xl { font-size: 2.5rem; }
    .note-lg { font-size: 2rem; }
}

/* Na mobilech skrýt poznámky */
@media (max-width: 768px) {
    .handwritten-note {
        display: none !important;
    }
}

/* === Speciální efekty === */
.wobble-note {
    animation: wobble 2s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.pulse-note {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}
