/* css/ihne-style.css */
:root {
    --ihn-primary: #1a237e;      /* Sötétkék */
    --ihn-secondary: #0d47a1;    /* Középkék */
    --ihn-accent: #42a5f5;       /* Világoskék */
    --ihn-success: #4caf50;      /* Zöld */
    --ihn-warning: #ff9800;      /* Narancs */
    --ihn-danger: #f44336;       /* Piros */
    --ihn-light: #f5f5f5;        /* Világos háttér */
    --ihn-dark: #212121;         /* Sötét szöveg */
    --ihn-gradient: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #42a5f5 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--ihn-light);
    color: var(--ihn-dark);
    line-height: 1.6;
}

/* IHN Header stílus */
.ihn-header {
    background: var(--ihn-gradient);
    color: white;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(26, 35, 126, 0.3);
}

.ihn-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.ihn-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Belépési kártya */
.join-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 0 20px;
}

.join-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-top: 5px solid var(--ihn-primary);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ihn-dark);
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: var(--ihn-accent);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
}

/* Gombok */
.btn-join {
    width: 100%;
    padding: 14px;
    background: var(--ihn-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 35, 126, 0.4);
}

/* Admin panel */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-nav {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.admin-nav a {
    padding: 10px 20px;
    background: var(--ihn-light);
    color: var(--ihn-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.admin-nav a:hover {
    background: var(--ihn-primary);
    color: white;
}

/* Prezentációs kártyák */
.presentations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.presentation-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-left: 5px solid var(--ihn-accent);
    transition: all 0.3s;
}

.presentation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.code-badge {
    display: inline-block;
    background: var(--ihn-gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 18px;
    margin: 15px 0;
}

/* Kérdés típusok stílusa */
.question-editor {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
}

.question-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.question-type-btn {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.question-type-btn:hover {
    border-color: var(--ihn-accent);
    background: #f5f9ff;
}

.question-type-btn.active {
    border-color: var(--ihn-primary);
    background: var(--ihn-gradient);
    color: white;
}

/* Like animáció */
.like-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--ihn-gradient);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(26, 35, 126, 0.4);
    transition: all 0.3s;
    z-index: 1000;
    font-size: 24px;
    color: white;
}

.like-btn:hover {
    transform: scale(1.1);
}

.floating-hearts {
    position: fixed;
    pointer-events: none;
    z-index: 999;
}

.heart {
    position: absolute;
    font-size: 24px;
    animation: floatUp 2s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(0.5);
    }
}

/* Reszponzív design */
@media (max-width: 768px) {
    .presentations-grid {
        grid-template-columns: 1fr;
    }
    
    .join-card {
        padding: 20px;
    }
    
    .admin-nav {
        flex-direction: column;
    }
}

/* Mozgó lófej logo */

/* Konténer */
.knight-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-right: 20px;
    position: relative;
    filter: drop-shadow(0 5px 15px rgba(26, 35, 126, 0.4));
}

/* Lófej fő elem */
.knight-head {
    position: relative;
    width: 60px;
    height: 70px;
    animation: knightFloat 3s ease-in-out infinite;
}

/* Lófej alap alakzat */
.knight-head::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 50px;
    height: 55px;
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #1a237e 100%);
    border-radius: 40% 30% 30% 40%;
    clip-path: polygon(
        /* Fej teteje */
        50% 0%, 65% 3%, 75% 8%, 82% 15%,
        /* Orr */
        88% 25%, 90% 35%, 85% 45%,
        /* Száj */
        80% 50%, 75% 48%, 70% 52%,
        /* Áll */
        65% 55%, 60% 50%,
        /* Nyak eleje */
        55% 58%, 58% 68%, 65% 75%,
        /* Nyak alja */
        75% 80%, 80% 88%, 70% 95%,
        /* Nyak hátsó */
        55% 90%, 45% 85%,
        /* Sörény */
        35% 78%, 25% 72%, 20% 65%,
        15% 55%, 18% 45%, 25% 38%,
        /* Fej hátsó */
        30% 30%, 28% 20%, 35% 12%,
        40% 6%, 45% 3%
    );
    box-shadow: 
        inset 2px -2px 5px rgba(0,0,0,0.2),
        inset -2px 2px 5px rgba(255,255,255,0.1),
        3px 3px 10px rgba(0,0,0,0.3);
    animation: headTurn 4s ease-in-out infinite;
}

/* Sörény */
.knight-head::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 30px;
    height: 50px;
    background: linear-gradient(90deg, 
        #0d47a1 0%, 
        #1565c0 30%, 
        #1976d2 60%, 
        #1a237e 100%
    );
    clip-path: polygon(
        40% 0%, 60% 10%, 50% 20%,
        70% 25%, 55% 35%, 75% 40%,
        60% 50%, 80% 55%, 65% 65%,
        85% 70%, 60% 85%, 70% 100%,
        40% 90%, 20% 80%, 30% 70%,
        10% 60%, 25% 50%, 15% 40%,
        30% 30%, 20% 20%, 35% 10%
    );
    animation: maneWave 2.5s ease-in-out infinite;
}

/* Szem */
.knight-eye {
    position: absolute;
    top: 18px;
    right: 8px;
    width: 12px;
    height: 14px;
    background: white;
    border-radius: 50%;
    z-index: 2;
    animation: eyeMovement 5s infinite;
    box-shadow: 
        inset 0 2px 3px rgba(0,0,0,0.1),
        0 0 5px rgba(255,255,255,0.3);
}

/* Pupilla */
.knight-eye::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 2px;
    width: 6px;
    height: 7px;
    background: #0d47a1;
    border-radius: 50%;
    animation: pupilMove 5s infinite;
}

/* Szemhéj */
.knight-eye::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 3px;
    background: #1a237e;
    border-radius: 3px;
    animation: eyelidBlink 4s infinite;
}

/* Orrlyuk */
.knight-nostril {
    position: absolute;
    top: 38px;
    right: 2px;
    width: 10px;
    height: 6px;
    background: #0d1b5e;
    border-radius: 50%;
    z-index: 2;
    animation: nostrilFlare 3s ease-in-out infinite;
}

/* Mosoly */
.knight-smile {
    position: absolute;
    top: 48px;
    right: 5px;
    width: 20px;
    height: 10px;
    border-bottom: 2px solid #42a5f5;
    border-radius: 0 0 50% 50%;
    z-index: 2;
    animation: smileMove 4s ease-in-out infinite;
}

/* Fül */
.knight-ear {
    position: absolute;
    top: 5px;
    left: 15px;
    width: 12px;
    height: 20px;
    background: linear-gradient(180deg, #283593 0%, #1a237e 100%);
    clip-path: polygon(50% 0%, 100% 30%, 80% 100%, 20% 100%, 0% 30%);
    transform: rotate(-15deg);
    animation: earTwitch 2s ease-in-out infinite;
}

/* Korona/sisak dísz */
.knight-crown {
    position: absolute;
    top: -8px;
    left: 15px;
    width: 30px;
    height: 15px;
    background: linear-gradient(180deg, #ffd700 0%, #ffab00 100%);
    clip-path: polygon(
        0% 100%, 10% 40%, 20% 100%, 
        30% 20%, 40% 100%, 50% 30%, 
        60% 100%, 70% 40%, 80% 100%,
        90% 50%, 100% 100%
    );
    z-index: 3;
    animation: crownShine 2s ease-in-out infinite;
}

/* Animációk */
@keyframes knightFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-5px) rotate(-2deg); 
    }
    75% { 
        transform: translateY(-3px) rotate(2deg); 
    }
}

@keyframes headTurn {
    0%, 100% { 
        transform: rotate(0deg) scaleX(1); 
    }
    30% { 
        transform: rotate(-5deg) scaleX(1.05); 
    }
    60% { 
        transform: rotate(3deg) scaleX(0.95); 
    }
}

@keyframes maneWave {
    0%, 100% { 
        transform: scaleX(1) rotate(0deg); 
        opacity: 0.9;
    }
    25% { 
        transform: scaleX(1.1) rotate(3deg); 
        opacity: 1;
    }
    50% { 
        transform: scaleX(0.95) rotate(-2deg); 
        opacity: 0.85;
    }
    75% { 
        transform: scaleX(1.08) rotate(1deg); 
        opacity: 0.95;
    }
}

@keyframes eyeMovement {
    0%, 100% { 
        transform: translateX(0px) translateY(0px); 
    }
    25% { 
        transform: translateX(-2px) translateY(-1px); 
    }
    50% { 
        transform: translateX(2px) translateY(0px); 
    }
    75% { 
        transform: translateX(-1px) translateY(1px); 
    }
}

@keyframes pupilMove {
    0%, 100% { 
        transform: translate(0px, 0px); 
    }
    30% { 
        transform: translate(-1px, -1px); 
    }
    60% { 
        transform: translate(2px, 0px); 
    }
}

@keyframes eyelidBlink {
    0%, 45%, 55%, 100% { 
        height: 3px; 
    }
    50% { 
        height: 14px; 
    }
}

@keyframes nostrilFlare {
    0%, 100% { 
        transform: scaleX(1); 
    }
    50% { 
        transform: scaleX(1.3); 
    }
}

@keyframes smileMove {
    0%, 100% { 
        transform: scaleX(1) rotate(0deg); 
    }
    50% { 
        transform: scaleX(1.2) rotate(2deg); 
    }
}

@keyframes earTwitch {
    0%, 90%, 100% { 
        transform: rotate(-15deg); 
    }
    95% { 
        transform: rotate(-25deg); 
    }
}

@keyframes crownShine {
    0%, 100% { 
        filter: brightness(1);
        transform: scaleY(1);
    }
    50% { 
        filter: brightness(1.3);
        transform: scaleY(1.1);
    }
}

/* Reszponzív méretek */
@media (max-width: 768px) {
    .knight-logo {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }
    
    .knight-head {
        width: 45px;
        height: 55px;
    }
    
    .knight-head::before {
        width: 38px;
        height: 42px;
    }
}

/* Kattintás animáció */
@keyframes knightNodClick {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-10deg); }
    40% { transform: rotate(5deg); }
    60% { transform: rotate(-5deg); }
    80% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

/* Nyerítés animáció */
@keyframes knightNeigh {
    0% { transform: scale(1) rotate(0deg); }
    10% { transform: scale(1.1) rotate(-5deg); }
    30% { transform: scale(1.05) rotate(5deg); }
    50% { transform: scale(1.15) rotate(-3deg); }
    70% { transform: scale(1.08) rotate(2deg); }
    100% { transform: scale(1) rotate(0deg); }
}