/* Detective Klub - Stílusok */
/* Mobil-reszponzív, Bootstrap nélküli CSS */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Fejléc */
h1 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

h3 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.4em;
}

/* Kártyák */
.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: #f8f9fa;
    margin: -30px -30px 20px -30px;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    border-bottom: 2px solid #e9ecef;
}

/* Gombok */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-primary {
    background: #007bff;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Form elemek */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-check {
    margin-bottom: 10px;
}

.form-check input {
    margin-right: 10px;
}

.form-check label {
    cursor: pointer;
}

/* Riasztások */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

/* Jegyzetfüzet */
.notebook {
    background: #f8f9fa;
    border: 3px solid #dee2e6;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    position: relative;
}

.notebook::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dc3545;
}

.word-display {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    color: #007bff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* Játékosok listája */
.players-list {
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.player-item:hover {
    background: #f8f9fa;
}

.player-item:last-child {
    border-bottom: none;
}

.player-name {
    font-weight: 500;
    font-size: 1.1em;
}

.player-points {
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
}

.player-role {
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-left: 10px;
}

.player-role.conspirator {
    background: #dc3545;
}

.player-role.storyteller {
    background: #ffc107;
    color: #212529;
}

/* Szavazás */
.voting-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.vote-option {
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.vote-option:hover {
    background: #e9ecef;
}

/* Játék állapot */
.game-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border-radius: 15px;
    font-size: 0.9em;
    margin: 2px;
}

/* Eredmények */
.results-section {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.results-section h3 {
    color: #155724;
}

/* Reszponzív design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 2em;
    }

    .card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .card-header {
        margin: -20px -20px 15px -20px;
        padding: 15px 20px;
    }

    .word-display {
        font-size: 2em;
    }

    .game-status {
        position: static;
        margin-bottom: 20px;
    }

    .btn {
        width: 100%;
        margin: 5px 0;
    }

    .form-control {
        font-size: 16px; /* Megakadályozza a zoom-ot iOS-ben */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }

    h1 {
        font-size: 1.5em;
    }

    .card {
        padding: 15px;
    }

    .word-display {
        font-size: 1.5em;
    }

    .player-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .player-points {
        margin-top: 5px;
    }
}

/* Animációk */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Print stílus */
@media print {
    body {
        background: white;
        color: black;
    }

    .game-status {
        position: static;
    }

    .btn {
        display: none;
    }
}
