/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   ANIMACJA SERCA NA POCZĄTKU
   ============================================ */
.heart-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 50%, #ff8e8e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeOutIntro 1s ease-in-out 4s forwards;
}

.heart-container {
    text-align: center;
    animation: scaleIn 0.8s ease-out;
}

.heart {
    position: relative;
    width: 150px;
    height: 135px;
    margin: 0 auto 30px;
    animation: heartBeat 1.2s infinite;
}

.heart::before,
.heart::after {
    position: absolute;
    content: "";
    left: 75px;
    top: 0;
    width: 75px;
    height: 120px;
    background: #fff;
    border-radius: 75px 75px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}

.heart::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.heart-text {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInText 1s ease-out 0.5s both;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutIntro {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ============================================
   GŁÓWNA ZAWARTOŚĆ STRONY
   ============================================ */
.main-content {
    opacity: 0;
    animation: fadeInContent 1s ease-out 4.5s forwards;
}

@keyframes fadeInContent {
    to { opacity: 1; }
}

/* ============================================
   NAWIGACJA
   ============================================ */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-tabs {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-tab {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ZAWARTOŚĆ ZAKŁADEK
   ============================================ */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   STRONA ZAGADKA
   ============================================ */
.message-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.message-container h1 {
    color: #667eea;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.message-container h2 {
    color: #764ba2;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
}

.birthday-message {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.birthday-message p {
    color: #5a4a42;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.crossword-intro {
    text-align: center;
    margin-bottom: 30px;
}

.crossword-intro h3 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.crossword-intro p {
    color: #666;
    font-size: 1rem;
}

/* ============================================
   KRZYŻÓWKA
   ============================================ */
.crossword-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

#crossword {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.crossword-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.row-number {
    width: 30px;
    font-weight: bold;
    color: #667eea;
    text-align: right;
    padding-right: 10px;
}

.crossword-cell {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: white;
}

.crossword-cell:focus {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
    outline: none;
}

.crossword-cell.highlighted {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-color: #ff6b6b;
}

.crossword-cell.correct {
    background: #d4edda;
    border-color: #28a745;
}

.crossword-cell.empty {
    background: #333;
    border-color: #333;
    pointer-events: none;
}

.clues-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
}

.clues-container h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.clue-item {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.clue-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.clue-number {
    font-weight: bold;
    color: #667eea;
    margin-right: 10px;
}

/* ============================================
   WYNIK
   ============================================ */
.result-message {
    margin-top: 30px;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
}

.result-message.hidden {
    display: none;
}

.result-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
}

.result-message.partial {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    border: 2px solid #ffc107;
}

/* ============================================
   STRONA REZERWACJE I REGULAMIN
   ============================================ */
.page-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-container h1 {
    color: #667eea;
    margin-bottom: 20px;
}

.page-container p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ============================================
   STRONA REGULAMIN
   ============================================ */
.regulamin-container {
    text-align: left;
}

.regulamin-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.regulamin-list {
    list-style: none;
    padding: 0;
}

.regulamin-list li {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    border-left: 5px solid #667eea;
    font-size: 1.1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.regulamin-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.regulamin-list li strong {
    color: #667eea;
}

/* ============================================
   STRONA REZERWACJE
   ============================================ */
.reservation-intro {
    margin-bottom: 30px;
}

.reservation-form {
    max-width: 450px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #667eea;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
}

.reservation-button {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.reservation-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.reservation-button:active {
    transform: translateY(-1px);
}

.coupon-message {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
}

.coupon-message.hidden {
    display: none;
}

.coupon-message.valid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

.coupon-message.invalid {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
}

.reservation-success {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 15px;
    border: 2px solid #28a745;
}

.reservation-success.hidden {
    display: none;
}

.reservation-success h2 {
    color: #155724;
    margin-bottom: 15px;
}

.reservation-success p {
    color: #155724;
    font-size: 1.1rem;
}

/* ============================================
   RESPONSYWNOŚĆ
   ============================================ */
@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-tab {
        text-align: center;
    }
    
    .message-container h1 {
        font-size: 1.8rem;
    }
    
    .crossword-cell {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .content {
        padding: 15px;
    }
    
    .message-container {
        padding: 20px;
    }
}
