/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff4757;
    --secondary-color: #ff6b7d;
    --accent-color: #ffa502;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-input: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --border-color: #333;
    --success-color: #2ed573;
    --gradient-primary: linear-gradient(135deg, #ff4757 0%, #ff6b7d 50%, #ffa502 100%);
    --gradient-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --shadow-primary: 0 10px 30px rgba(255, 71, 87, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Container and layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 71, 87, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn.copied {
    background: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: white !important;
}

.share-icon {
    font-size: 1.1em;
}

.share-text {
    letter-spacing: 0.5px;
}

.contribute-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid #ffd700;
    border-radius: 25px;
    color: #ffd700;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: contributeGlow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.contribute-btn:hover {
    background: #ffd700;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(255, 215, 0, 0.4);
    animation: none;
}

.contribute-btn:active {
    transform: translateY(0);
}

.contribute-icon {
    font-size: 1.1em;
    animation: sparkle 1.5s ease-in-out infinite;
}

.contribute-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}


@keyframes contributeGlow {
    0% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.2), 0 0 40px rgba(255, 215, 0, 0.1);
        border-color: #ffd700;
    }
    100% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.2);
        border-color: #ffed4e;
    }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.ban-guide-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid #ff6b35;
    border-radius: 25px;
    color: #ff6b35;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.ban-guide-btn:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.ban-guide-btn:active {
    transform: translateY(0);
}

.ban-guide-icon {
    font-size: 1.1em;
}

.ban-guide-text {
    font-weight: 600;
}

/* Rating System Styles */
.rating-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.rating-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.upvote-btn {
    border-color: #28a745;
    color: #28a745;
}

.upvote-btn:hover {
    background: #28a745;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.upvote-btn.voted {
    background: #28a745;
    color: white;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.downvote-btn {
    border-color: #dc3545;
    color: #dc3545;
}

.downvote-btn:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.downvote-btn.voted {
    background: #dc3545;
    color: white;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.rating-btn:active {
    transform: translateY(0);
}

.rating-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rating-icon {
    font-size: 1.1em;
}

.rating-count {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 71, 87, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(255, 71, 87, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(255, 71, 87, 0.8)); }
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1px;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Input section */
.input-section {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

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

.label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.game-select,
.style-select {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-select:focus,
.style-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2);
    transform: translateY(-2px);
}

.game-select option,
.style-select option {
    background: var(--bg-input);
    color: var(--text-primary);
    padding: 10px;
}

/* Generate button */
.generate-btn {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    border: none;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: var(--shadow-primary);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.4);
}

.generate-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Output section */
.output-section {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.roast-output {
    margin-bottom: 20px;
}

.placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.flame-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: flicker 2s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.roast-text {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-primary);
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 107, 125, 0.1) 100%);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.5s ease-out;
}

.cache-indicator {
    color: var(--accent-color);
    font-size: 0.9em;
    opacity: 0.8;
    cursor: help;
    animation: pulse 2s ease-in-out infinite;
}

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

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

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.action-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.action-btn:hover {
    border-color: var(--primary-color);
    background: rgba(255, 71, 87, 0.1);
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

/* Stats section */
.stats-section {
    display: flex;
    justify-content: space-around;
    background: var(--bg-card);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 5px;
    font-weight: 500;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-link:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.2);
}

.email-copy-btn {
    border: none;
    cursor: pointer;
}

.email-copy-btn.copied {
    background: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 213, 115, 0.3);
}

.disclaimer {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Page-specific styles */
.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
}

.nav-btn:active {
    transform: translateY(0);
}

.guide-section, .about-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.intro-box, .rule-card, .story-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.ban-stats {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.ban-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 71, 87, 0.3);
    min-width: 120px;
}

.ban-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.ban-game {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

.rule-card h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', monospace;
}

.rule-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.rule-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rule-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rule-item h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.rule-explanation {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 165, 2, 0.1);
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    font-style: italic;
    line-height: 1.6;
}

.danger-zone {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.danger-zone ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.danger-zone li {
    margin: 0.5rem 0;
    color: #ff6b6b;
}

.pro-tip {
    background: rgba(46, 213, 115, 0.1);
    border-left: 4px solid var(--success-color);
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    line-height: 1.6;
}

.pro-tip h4 {
    color: var(--success-color);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
}

.final-note {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 2rem;
}

.final-note h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.final-note p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.final-note a {
    color: #ffd700;
    text-decoration: underline;
    font-weight: bold;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.expertise-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.expertise-item h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.community-stats {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.community-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 71, 87, 0.3);
    min-width: 160px;
    flex: 1;
}

.community-stat .stat-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.community-stat .stat-text {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.community-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 15px 0 20px 0;
}

.community-notice .notice-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.community-notice .notice-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Success State Styles */
.success-state {
    text-align: center;
    padding: 2rem 1rem;
    animation: slideIn 0.5s ease-out;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.success-icon {
    font-size: 4rem;
    animation: bounce 1s ease infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-10px) scale(1.1); }
}

.success-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

.success-message {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 400px;
    margin: 0;
}

.success-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.submit-another-btn, .close-success-btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid;
    min-width: 140px;
}

.submit-another-btn {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    color: #ffd700;
}

.submit-another-btn:hover {
    background: #ffd700;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.close-success-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.close-success-btn:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
}

.submit-another-btn:active, .close-success-btn:active {
    transform: translateY(0);
}

.cta-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.4);
}

.cta-btn.secondary {
    background: rgba(255, 107, 53, 0.8);
}

.cta-btn.secondary:hover {
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

/* Contribute CTA Section */
.contribute-cta-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    padding: 2.5rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.15);
}

.contribute-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-header {
    margin-bottom: 2rem;
}

.cta-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffa502 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: titlePulse 2s ease-in-out infinite alternate;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes titlePulse {
    0% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    100% { text-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    background: rgba(255, 215, 0, 0.15);
}

.feature-icon {
    font-size: 1.2rem;
}

.feature-text {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.cta-contribute-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffa502 100%);
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a1a2e;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.cta-contribute-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.5);
}

.cta-contribute-btn:active {
    transform: translateY(-1px);
}

.cta-btn-text {
    position: relative;
    z-index: 2;
}

.cta-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transform: translate(-50%, -50%) scale(0);
    animation: pulseEffect 2s ease-in-out infinite;
}

@keyframes pulseEffect {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    70% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* Community section */
.community-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    text-align: center;
}

.community-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 0.5rem;
}

.community-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
}


.contribute-icon {
    font-size: 1.2rem;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--bg-input);
    color: var(--primary-color);
}

.modal-body {
    padding: 2rem;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cancel-btn {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.cancel-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.community-form {
    display: grid;
    gap: 1.5rem;
}

.roast-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.roast-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.roast-textarea::placeholder {
    color: var(--text-secondary);
}

.char-counter {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.char-counter.warning {
    color: var(--accent-color);
}

.char-counter.danger {
    color: var(--primary-color);
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submission-message {
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.submission-message.success {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.submission-message.error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.submission-message.info {
    background: rgba(255, 165, 2, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-top {
        justify-content: center;
        margin-bottom: 15px;
        gap: 8px;
    }
    
    .share-btn, .contribute-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 44px;
        height: 44px;
        border-radius: 22px;
    }
    
    .contribute-text, .share-text {
        display: none;
    }
    .contribute-btn, .share-btn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 0;
    }
    
    .contribute-icon, .share-icon {
        font-size: 1.2em;
    }
    
    .rating-buttons {
        margin-left: 15px;
        padding-left: 15px;
        gap: 8px;
    }
    
    .rating-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .rating-icon {
        font-size: 1em;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .input-section,
    .output-section,
    .stats-section {
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .stats-section {
        flex-direction: column;
        gap: 20px;
    }

    .community-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .community-title {
        font-size: 1.5rem;
    }

    .community-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* CTA Section Mobile Styles */
    .contribute-cta-section {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-features {
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .feature-item {
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .cta-contribute-btn {
        padding: 16px 30px;
        font-size: 1rem;
    }

    /* Keep contribute same size as share on mobile */

    .modal-overlay {
        padding: 1rem;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .roast-textarea {
        min-height: 100px;
        font-size: 0.9rem;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }

    /* Rate Limit Mobile Styles */
    .rate-limit-message {
        padding: 1.5rem 1rem;
    }

    .rate-limit-title {
        font-size: 1.3rem;
    }

    .rate-limit-description {
        font-size: 1rem;
    }

    .rate-limit-contribute-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .remaining-notification {
        top: 10px;
        right: 10px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .roast-text {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Rate Limit Message Styles */
.rate-limit-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 71, 87, 0.1) 100%);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    margin: 1rem 0;
    animation: slideIn 0.5s ease-out;
}

.rate-limit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out infinite alternate;
}

.rate-limit-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

.rate-limit-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.rate-limit-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.rate-limit-contribute-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffa502 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

.rate-limit-contribute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5);
}

.rate-limit-contribute-btn .btn-icon {
    font-size: 1.2rem;
}

.rate-limit-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.8;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 8px 35px rgba(255, 215, 0, 0.6); }
}

/* Remaining Generations Notification */
.remaining-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.9) 0%, rgba(255, 107, 125, 0.9) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
    animation: slideInNotification 0.3s ease-out, fadeOutNotification 0.3s ease-in 3.7s forwards;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.remaining-notification .remaining-icon {
    font-size: 1.1rem;
}

.remaining-notification .remaining-text {
    white-space: nowrap;
}

@keyframes slideInNotification {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutNotification {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Admin Panel Rating Styles */
.roast-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.rating-item.upvotes {
    color: #28a745;
}

.rating-item.downvotes {
    color: #dc3545;
}

.rating-item.score {
    color: #ffd700;
    margin-left: auto;
    font-weight: 700;
}
