@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

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

:root {
    --primary-color: #8B4513;
    --secondary-color: #654321;
    --accent-color: #FFD700;
    --bg-light: #f4f1ea;
    --bg-dark: #2c1810;
    --text-dark: #333;
    --text-light: #666;
    --shadow-light: rgba(0,0,0,0.1);
    --shadow-medium: rgba(0,0,0,0.2);
    --shadow-dark: rgba(0,0,0,0.3);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f4f1ea 0%, #e8e2d5 50%, #f4f1ea 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--bg-dark) 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    box-shadow: 0 4px 20px var(--shadow-dark);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 6px var(--shadow-dark);
    position: relative;
    z-index: 1;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 3px 3px 6px var(--shadow-dark), 0 0 10px rgba(255,255,255,0.3); }
    to { text-shadow: 3px 3px 6px var(--shadow-dark), 0 0 20px rgba(255,255,255,0.5); }
}

.tagline {
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 300;
    letter-spacing: 0.5px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.intro {
    background: linear-gradient(135deg, white 0%, #fcfcfc 100%);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px var(--shadow-light);
    position: relative;
    border: 1px solid rgba(139,69,19,0.1);
}

.intro::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intro:hover::after {
    opacity: 0.1;
}

.intro h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.intro h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 2px;
}

.definition {
    background: linear-gradient(135deg, #fff8dc 0%, #fff5c5 100%);
    padding: 2rem;
    border-left: 5px solid var(--primary-color);
    font-size: 1.15rem;
    border-radius: 0 10px 10px 0;
    position: relative;
    margin: 1.5rem 0;
    box-shadow: 0 3px 10px var(--shadow-light);
}

.definition::before {
    content: "💩";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 5px;
    border-radius: 50%;
    font-size: 1.5rem;
}

.definition strong {
    color: var(--primary-color);
    font-size: 1.4rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.wall-of-shame h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px var(--shadow-light);
    position: relative;
    padding-bottom: 1rem;
}

.wall-of-shame h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

.constipationiste-card {
    background: linear-gradient(135deg, white 0%, #fcfcfc 100%);
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-light);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(139,69,19,0.05);
    overflow: hidden;
}

.constipationiste-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.1), transparent);
    transition: left 0.6s ease;
}

.constipationiste-card:hover::before {
    left: 100%;
}

.constipationiste-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-medium);
    border-color: rgba(139,69,19,0.2);
}

.rank {
    position: absolute;
    top: -20px;
    left: 25px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #FFC700 100%);
    color: var(--text-dark);
    font-size: 2.2rem;
    font-weight: 700;
    padding: 15px 25px;
    border-radius: 50%;
    box-shadow: 0 5px 15px var(--shadow-medium);
    border: 3px solid white;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.constipationiste-card:hover .rank {
    transform: rotate(360deg) scale(1.1);
}

.constipationiste-card h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    margin-left: 100px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
}

.constipationiste-card:hover h3 {
    color: var(--primary-color);
}

.surnom {
    font-style: italic;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    margin-left: 100px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.constipationiste-card:hover .surnom {
    opacity: 1;
}

blockquote {
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
    border-left: 5px solid var(--primary-color);
    margin: 1.5rem 0;
    padding: 1.5rem;
    font-style: italic;
    color: #555;
    border-radius: 0 10px 10px 0;
    position: relative;
    box-shadow: 0 3px 10px var(--shadow-light);
}

blockquote::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: 'Roboto', sans-serif;
}

.description {
    margin: 1rem 0;
    line-height: 1.8;
    color: #444;
}

.constipation-score {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff8dc 0%, #fff5c5 100%);
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 3px 10px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.constipation-score::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.poop-rating {
    font-size: 1.8rem;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}

.constipationiste-card:hover .poop-rating {
    transform: scale(1.1);
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

.mystery {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border: 2px dashed #999;
}

.mystery h3 {
    color: #666;
}

.vote-btn, .report-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.15rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.vote-btn::before, .report-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.vote-btn:hover::before, .report-btn:hover::before {
    width: 300px;
    height: 300px;
}

.vote-btn:hover, .report-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.report-section {
    text-align: center;
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, white 0%, #fcfcfc 100%);
    border-radius: 20px;
    box-shadow: 0 8px 20px var(--shadow-light);
    position: relative;
    border: 1px solid rgba(139,69,19,0.05);
}

.report-section::before {
    content: "🚨";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 3px 10px var(--shadow-light);
}

.report-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.report-btn {
    font-size: 1.4rem;
    padding: 18px 45px;
    margin-top: 1.5rem;
}

footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a0e08 100%);
    color: #ddd;
    text-align: center;
    padding: 3rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

footer p {
    margin: 0.5rem 0;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background: linear-gradient(135deg, white 0%, #fcfcfc 100%);
    margin: 5% auto;
    padding: 2.5rem;
    border: 1px solid rgba(139,69,19,0.2);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow-dark);
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    position: relative;
    padding-bottom: 1rem;
}

.modal h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

input[type="text"],
textarea {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, white 0%, #fcfcfc 100%);
}

input[type="text"]:hover,
textarea:hover {
    border-color: #bbb;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139,69,19,0.1);
    transform: translateY(-2px);
}

textarea {
    resize: vertical;
}

form button {
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.15rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px var(--shadow-light);
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

form button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

form button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

form button:hover::before {
    width: 300px;
    height: 300px;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .wall-of-shame h2 {
        font-size: 1.8rem;
    }
    
    .constipationiste-card {
        padding: 1.5rem;
    }
    
    .rank {
        font-size: 1.5rem;
        padding: 8px 15px;
    }
    
    .constipationiste-card h3 {
        font-size: 1.4rem;
        margin-left: 60px;
    }
    
    .surnom {
        margin-left: 60px;
    }
    
    .poop-rating {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
    }
    
    .intro {
        padding: 1.5rem;
    }
    
    .definition {
        padding: 1rem;
    }
    
    .constipationiste-card {
        padding: 1rem;
    }
    
    .rank {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    .constipationiste-card h3,
    .surnom {
        margin-left: 0;
    }
}