/* Variables CSS harmonisées avec la page d'accueil */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff4d94; 
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 12px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
 
/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7fb;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header et navigation */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.logo i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-info span {
    font-weight: 500;
    font-size: 0.9rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section Gaming */
.hero-gaming {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-gaming::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 77, 148, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    padding: 0 10px;
}

.hero-title .amount-small {
    color: rgba(255, 255, 255, 0.9);
}

.hero-title .amount-big {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3em;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
    padding: 0 10px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.jackpot-display {
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    max-width: 100%;
    margin: 0 auto;
}

.jackpot-label {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jackpot-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.jackpot-amount .currency {
    font-size: clamp(0.85rem, 2vw, 1rem);
    opacity: 0.8;
}

.jackpot-counter {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 900;
    color: #ffd700;
    font-family: 'Courier New', monospace;
}

.jackpot-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #4ade80;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
}

/* Actions rapides */
.quick-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

.user-balance-card {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 1rem 1.2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.balance-info {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.balance-label {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-bottom: 0.2rem;
}

.balance-amount {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 700;
    color: var(--primary-color);
}

.bonus-points {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 700;
    color: #ffa500;
}

/* Section principale */
.main-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

/* Sidebar */
.sidebar {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    height: fit-content;
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: var(--dark-color);
    font-size: 0.95rem;
}

.sidebar-menu a:hover {
    background-color: #f0f2f5;
    color: var(--primary-color);
}

.sidebar-menu a.active {
    background-color: #eef2ff;
    color: var(--primary-color);
    font-weight: 500;
}

/* Contenu principal */
.content-area {
    min-height: 60vh;
    width: 100%;
    overflow-x: hidden;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header h2 {
    color: var(--primary-color);
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn {
    padding: 0.7rem 1.2rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.3);
}

.btn-secondary {
    background: var(--light-color);
    color: var(--dark-color);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-close-section {
    background: transparent;
    border: none;
    color: var(--gray-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.btn-close-section:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--dark-color);
}

/* Formulaire de création */
.create-post-section {
    margin-bottom: 2rem;
}

.form-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    width: 100%;
    overflow-x: hidden;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: var(--gray-color);
    font-size: 0.8rem;
}

.info-box {
    background: #f0f2f5;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.info-box p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-box small {
    color: var(--gray-color);
    font-size: 0.8rem;
}

/* Grille de films */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
}

.movie-item {
    position: relative;
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 3px solid transparent;
    background: white;
}

.movie-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.movie-item.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.2);
}

.movie-image {
    position: relative;
    width: 100%;
    padding-top: 150%;
    overflow: hidden;
    background: #f0f2f5;
}

.movie-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(106, 17, 203, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.movie-item.selected .movie-overlay {
    opacity: 1;
}

.movie-overlay i {
    font-size: 2.5rem;
    color: white;
}

.movie-info {
    padding: 0.5rem;
}

.movie-info h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-category {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    background: rgba(106, 17, 203, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 500;
}

/* Screenshot preview */
.screenshot-preview-box {
    margin-top: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid #ddd;
    max-width: 100%;
}

.screenshot-preview-box img {
    width: 100%;
    display: block;
    max-width: 100%;
    height: auto;
}

/* Pricing cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pricing-card {
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    background: white;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.pricing-card input[type="radio"] {
    display: none;
}

.pricing-card input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background: rgba(106, 17, 203, 0.05);
}

.pricing-card label {
    display: block;
    padding: 1.2rem;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
}

.pricing-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pricing-header i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.pricing-header h4 {
    font-size: 1rem;
    font-weight: 700;
}

.pricing-body {
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.price-info {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.pricing-body ul {
    list-style: none;
}

.pricing-body ul li {
    padding: 0.3rem 0;
    color: var(--gray-color);
    font-size: 0.85rem;
}

.cost-summary {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.cost-summary h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}

.cost-item:last-child {
    border-bottom: none;
}

.form-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    flex: 1;
}

/* Feed Section */
.feed-section {
    margin-top: 1.5rem;
}

.feed-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 1px solid #ddd;
    color: var(--dark-color);
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    background: #f0f2f5;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

/* Post Cards */
.post-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.post-header {
    padding: 1.2rem;
}

.post-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-badge.hot {
    background: linear-gradient(135deg, #ff4d94, #ff1744);
    color: white;
}

.post-badge.new {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #333;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.author-info p {
    font-size: 0.75rem;
    color: var(--gray-color);
}

.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--dark-color);
}

.post-description {
    color: var(--gray-color);
    font-size: 0.85rem;
    line-height: 1.5;
}

.post-body {
    padding: 0 1.2rem 1.2rem;
}

.movie-poster img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    max-width: 100%;
    height: auto;
}

.game-info {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.game-info h4 {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-type-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
}

.game-type-badge.free {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.game-type-badge.paid {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.difficulty-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(106, 17, 203, 0.1);
    color: var(--primary-color);
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-color);
}

.stat-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.stat-item strong {
    color: var(--dark-color);
    font-weight: 600;
}

.game-question {
    background: white;
    padding: 0.9rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
    margin: 1rem 0;
}

.game-question p {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--dark-color);
}

.post-footer {
    padding: 1rem 1.2rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn-play-game {
    flex: 2;
    min-width: 150px;
    padding: 0.7rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-play-game:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-play-game:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-share,
.btn-view-results {
    flex: 1;
    min-width: 80px;
    padding: 0.7rem 0.5rem;
    background: white;
    color: var(--dark-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.btn-share:hover,
.btn-view-results:hover {
    background: #f0f2f5;
}

.post-engagement {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    color: var(--gray-color);
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-engagement span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Screenshot button in posts */
.btn-view-screenshot {
    width: 100%;
    padding: 0.7rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-view-screenshot:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.post-screenshot-container {
    display: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 1rem;
}

.post-screenshot-container img {
    width: 100%;
    display: block;
    max-width: 100%;
    height: auto;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.modal-header h3 {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.modal-close {
    background: white;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    transition: var(--transition);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #f0f2f5;
    color: var(--dark-color);
}

.modal-body {
    padding: 1.2rem;
}

.modal-actions {
    padding: 1.2rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.8rem;
    background: #f8f9fa;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
    min-width: 120px;
}

.game-preview h4 {
    margin-bottom: 1.2rem;
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 700;
    color: var(--primary-color);
}

.game-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}

.info-item {
    background: #f8f9fa;
    padding: 0.7rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.video-preview {
    margin-bottom: 1.2rem;
}

.question-preview,
.hints-preview,
.screenshot-preview,
.answer-form {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.question-preview h5,
.hints-preview h5,
.screenshot-preview h5,
.answer-form h5 {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
}

.hints-preview ul {
    list-style: none;
}

.hints-preview ul li {
    padding: 0.4rem 0;
    color: var(--gray-color);
    font-size: 0.85rem;
    padding-left: 1.5rem;
    position: relative;
}

.hints-preview ul li::before {
    content: '💡';
    position: absolute;
    left: 0;
}

.screenshot-container {
    margin-top: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid #ddd;
}

.screenshot-container img {
    width: 100%;
    display: block;
    max-width: 100%;
    height: auto;
}

.balance-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 3000;
    animation: slideIn 0.3s ease;
    max-width: calc(100% - 40px);
    font-size: 0.9rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.success {
    background: var(--success-color);
    color: white;
}

.notification.error {
    background: var(--danger-color);
    color: white;
}

.notification.info {
    background: var(--warning-color);
    color: #333;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray-color);
}

.loading i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: #ddd;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.85rem;
}

/* Utilitaires */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        padding: 1.5rem 0;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 99;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links a {
        color: var(--dark-color);
        padding: 0.9rem;
        border-radius: var(--border-radius);
    }

    .nav-links a:hover {
        background-color: #f0f2f5;
    }

    .nav-links a.active {
        background-color: #eef2ff;
        color: var(--primary-color);
    }

    .quick-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
    }

    .user-balance-card {
        justify-content: space-between;
        gap: 1rem;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .hero-gaming {
        padding: 1.5rem 0;
    }

    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 0.6rem;
    }

    .stat-box {
        padding: 0.8rem;
    }

    .jackpot-display {
        padding: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.6rem;
        padding: 0.6rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .feed-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .game-info-grid {
        grid-template-columns: 1fr;
    }

    .game-stats {
        grid-template-columns: 1fr;
    }

    .post-actions {
        flex-direction: column;
    }

    .btn-play-game,
    .btn-share,
    .btn-view-results {
        width: 100%;
    }

    .form-container {
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .modal-content {
        max-width: 95%;
        margin: 0.5rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-actions {
        padding: 1rem;
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-section {
        min-width: 100%;
    }

    .user-info span {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-box {
        padding: 0.7rem;
    }

    .balance-info {
        min-width: 100px;
    }

    .user-balance-card {
        gap: 1rem;
        padding: 0.9rem;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }

    .movie-overlay i {
        font-size: 2rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .post-card {
        margin: 0 5px;
    }

    .post-header,
    .post-body,
    .post-footer {
        padding: 1rem;
    }

    .notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        padding: 0.9rem;
        font-size: 0.85rem;
    }

    .form-group small {
        font-size: 0.75rem;
    }

    .pricing-card label {
        padding: 1rem;
    }

    .cost-summary {
        padding: 1rem;
    }

    .info-item {
        font-size: 0.75rem;
        padding: 0.6rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

    .logo span {
        font-size: 1.1rem;
    }

    .avatar {
        width: 35px;
        height: 35px;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .stat-label,
    .filter-btn,
    .game-type-badge,
    .difficulty-badge,
    .post-badge {
        font-size: 0.65rem;
    }
}

/* Styles pour le système d'abonnement */
.followers-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: rgba(106, 17, 203, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.followers-badge i {
    font-size: 0.7rem;
}

.btn-follow {
    padding: 0.5rem 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    white-space: nowrap;
    margin-left: auto;
}

.btn-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3);
}

.btn-follow.following {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.btn-follow.following:hover {
    background: linear-gradient(135deg, #218838, #1aa179);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    width: 100%;
}

.author-info {
    flex: 1;
}

@media (max-width: 768px) {
    .btn-follow {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .followers-badge { 
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
     
    .follow-text {
        display: none;
    }
    
    .btn-follow i {
        margin: 0;
    }
}

/* Dans votre fichier index.css */

.btn-follow {
    transition: all 0.3s ease;
    position: relative;
}

.btn-follow:disabled {
    opacity: 0.6;
    cursor: wait;
}

.btn-follow.following {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-follow:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3);
}

.followers-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(106, 17, 203, 0.1);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* ============================================
   SYSTÈME DE NOTIFICATIONS
   ============================================ */

.notification-bell {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
    z-index: 1500;
    transition: var(--transition);
}

.notification-bell:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.6);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notifications-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 2500;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.notifications-panel.active {
    right: 0;
}

.notifications-header {
    padding: 1.5rem;
    border-bottom: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.notifications-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.btn-close-notifications {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-close-notifications:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.notification-item {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-item:hover {
    background: #e9ecef;
    transform: translateX(-5px);
    box-shadow: var(--box-shadow);
}

.notification-item.unread {
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
    border-left-color: var(--accent-color);
}

.notification-content {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.notification-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
}

.notification-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.notification-title {
    color: var(--dark-color);
    font-size: 0.95rem;
    margin: 0.3rem 0;
    font-weight: 500;
}

.notification-time {
    color: var(--gray-color);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.empty-notifications {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-color);
}

.empty-notifications i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .notifications-panel {
        width: 100%;
        right: -100%;
    }
    
    .notification-bell {
        top: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}