/* === STYLES SPÉCIFIQUES POUR LE LIVRE D'OR === */

.guestbook-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.guestbook-header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border: 3px solid var(--neon-pink);
    border-radius: 15px;
    box-shadow: 0 0 30px var(--neon-pink);
    position: relative;
    overflow: hidden;
}

.guestbook-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 20, 147, 0.1), transparent);
    animation: shimmer 4s linear infinite;
}

.guestbook-form {
    background: rgba(0, 0, 0, 0.8);
    padding: 25px;
    border: 3px solid var(--neon-green);
    border-radius: 15px;
    box-shadow: 0 0 30px var(--neon-green);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.guestbook-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    animation: shimmer 5s linear infinite;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    color: var(--neon-yellow);
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
    text-shadow: 0 0 10px currentColor;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-family: 'Comic Neue', cursive;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 15px var(--neon-cyan);
    border-color: var(--neon-pink);
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.02);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
}

.submit-btn {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    border: 2px solid var(--neon-yellow);
    color: white;
    padding: 15px 30px;
    border-radius: 15px;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
    width: 100%;
    position: relative;
    z-index: 1;
}

.submit-btn:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.8);
    animation: buttonPulse 0.3s ease-in-out;
}

.submit-btn:active {
    transform: scale(0.98);
}

@keyframes buttonPulse {
    0%, 100% { transform: scale(1.05) rotate(1deg); }
    50% { transform: scale(1.08) rotate(-1deg); }
}

.entries-container {
    background: rgba(0, 0, 0, 0.8);
    padding: 25px;
    border: 3px solid var(--neon-purple);
    border-radius: 15px;
    box-shadow: 0 0 30px var(--neon-purple);
    position: relative;
    overflow: hidden;
}

.entries-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    animation: shimmer 6s linear infinite;
}

.guestbook-entry {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    border-left: 4px solid var(--neon-cyan);
    position: relative;
    animation: slideIn 0.5s ease-out;
    transition: all 0.3s ease;
    z-index: 1;
}

.guestbook-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.entry-name {
    font-weight: bold;
    color: var(--neon-yellow);
    font-size: 1.1em;
    text-shadow: 0 0 10px currentColor;
}

.entry-date {
    color: var(--neon-cyan);
    font-size: 0.9em;
    font-style: italic;
    text-shadow: 0 0 5px currentColor;
}

.entry-message {
    color: white;
    line-height: 1.5;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(45deg, var(--neon-orange), var(--neon-red));
    border: 2px solid var(--neon-yellow);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.back-btn:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.8);
    animation: backBtnBounce 0.5s ease-in-out;
}

@keyframes backBtnBounce {
    0%, 100% { transform: scale(1.1) rotate(-2deg); }
    50% { transform: scale(1.15) rotate(2deg); }
}

.stats-box {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border: 2px solid var(--neon-yellow);
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.3);
    position: relative;
}

.stats-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 0, 0.1), transparent);
    animation: shimmer 3s linear infinite;
    border-radius: 8px;
}

.clear-btn {
    background: linear-gradient(45deg, var(--neon-red), #8B0000);
    border: 2px solid var(--neon-yellow);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.clear-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    animation: dangerPulse 0.3s ease-in-out;
}

@keyframes dangerPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 0, 0, 0.8); }
}

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

.no-entries {
    text-align: center;
    color: var(--neon-cyan);
    font-style: italic;
    padding: 40px;
    font-size: 1.2em;
    text-shadow: 0 0 10px currentColor;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Animations des liens dans les entrées */
.guestbook-entry .retro-link {
    color: var(--neon-pink);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid currentColor;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: inline-block;
}

.guestbook-entry .retro-link:hover {
    background: rgba(255, 20, 147, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

/* Compteur de caractères pour les champs */
.char-counter {
    position: absolute;
    bottom: -20px;
    right: 5px;
    font-size: 0.8em;
    color: var(--neon-cyan);
    opacity: 0.7;
}

.char-counter.warning {
    color: var(--neon-orange);
    opacity: 1;
}

.char-counter.danger {
    color: var(--neon-red);
    opacity: 1;
    animation: blink 1s infinite;
}

/* Responsive Design */
@media (max-width: 600px) {
    .guestbook-page {
        padding: 10px;
    }
    
    .back-btn {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 20px;
        display: block;
        text-align: center;
    }
    
    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .guestbook-header,
    .guestbook-form,
    .entries-container {
        padding: 15px;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .guestbook-header h1 {
        font-size: 2em;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 13px;
    }
    
    .guestbook-entry {
        padding: 15px;
    }
}
