/**
 * Klasičan Gejming - Pages CSS
 * Stilovi za video, giveaways, memes, kreacije, recenzije stranice
 */

/* ===== Video Page ===== */
.video-header {
    text-align: center;
    padding: 40px 0;
}

.video-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.video-header h1 i {
    color: #ff0000;
}

.video-header p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-youtube {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-youtube:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

/* Featured Video */
.featured-video {
    margin-bottom: 48px;
}

.video-player {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.video-embed {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: all 0.3s ease;
}

.video-placeholder:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ff0000;
}

.video-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.video-info h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.video-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.video-stats i {
    margin-right: 6px;
    color: var(--accent-pink);
}

.video-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: auto;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-pink);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.video-card-info {
    padding: 16px;
}

.video-card-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-card-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
}

.video-modal-content iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: color 0.2s;
}

.video-modal-close:hover {
    color: var(--accent-pink);
}

/* ===== Giveaways Page ===== */
.giveaway-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.giveaway-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.giveaway-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.15);
}

.giveaway-card.ending-soon {
    border-color: var(--accent-orange);
}

.giveaway-card.ended {
    opacity: 0.6;
}

.giveaway-image {
    position: relative;
    aspect-ratio: 16/9;
}

.giveaway-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.giveaway-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.giveaway-status.active {
    background: var(--accent-green);
    color: #000;
}

.giveaway-status.ending-soon {
    background: var(--accent-orange);
    color: #000;
}

.giveaway-status.ended {
    background: var(--bg-hover);
    color: var(--text-muted);
}

.giveaway-content {
    padding: 24px;
}

.giveaway-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.giveaway-prize {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--accent-cyan);
    font-weight: 600;
}

.giveaway-prize i {
    font-size: 20px;
}

.giveaway-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.timer-item {
    background: var(--bg-hover);
    padding: 12px;
    border-radius: var(--radius-md);
}

.timer-item .value {
    display: block;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.timer-item .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.giveaway-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.giveaway-entries {
    font-size: 14px;
    color: var(--text-secondary);
}

.giveaway-entries strong {
    color: var(--text-primary);
}

/* ===== Memes Page ===== */
.memes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.meme-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.meme-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-yellow);
}

.meme-image {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.meme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.meme-card:hover .meme-image img {
    transform: scale(1.05);
}

.meme-content {
    padding: 16px;
}

.meme-content h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.meme-actions {
    display: flex;
    gap: 16px;
}

.meme-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.meme-action:hover {
    color: var(--accent-pink);
}

.meme-action.liked {
    color: var(--accent-pink);
}

/* ===== Kreacije/UGC Page ===== */
.ugc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ugc-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.ugc-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-pink);
    box-shadow: 0 15px 40px rgba(255, 45, 117, 0.15);
}

.ugc-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
}

.ugc-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ugc-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.ugc-type-badge.fanart { background: var(--accent-pink); }
.ugc-type-badge.guide { background: var(--accent-cyan); }
.ugc-type-badge.build { background: var(--accent-purple); }
.ugc-type-badge.video { background: #ff0000; }
.ugc-type-badge.meme { background: var(--accent-yellow); color: #000; }

.ugc-content {
    padding: 16px;
}

.ugc-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.ugc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.ugc-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ugc-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.ugc-stats {
    display: flex;
    gap: 12px;
}

.ugc-stats i {
    margin-right: 4px;
}

/* ===== Recenzije Page ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 15px 40px rgba(153, 69, 255, 0.15);
}

.review-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.review-game-image {
    width: 100px;
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.review-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-game-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.review-game-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.review-score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.score-circle.high { background: var(--accent-green); }
.score-circle.medium { background: var(--accent-yellow); color: #000; }
.score-circle.low { background: var(--accent-red); }

.score-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.review-content {
    padding: 20px;
}

.review-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.review-author-info {
    font-size: 14px;
}

.review-author-info .name {
    font-weight: 600;
    color: var(--text-primary);
}

.review-author-info .date {
    color: var(--text-muted);
}

/* ===== Live Streams Section ===== */
.live-streams {
    margin-top: 48px;
}

.streams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stream-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.stream-card:hover {
    border-color: #9146ff;
    box-shadow: 0 10px 30px rgba(145, 70, 255, 0.2);
}

.stream-thumbnail {
    width: 160px;
    height: 90px;
    flex-shrink: 0;
    position: relative;
}

.stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff0000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.stream-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stream-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.stream-game {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stream-viewers {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .video-grid,
    .memes-grid,
    .ugc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .streams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .video-player {
        grid-template-columns: 1fr;
    }
    
    .giveaway-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .video-header h1 {
        font-size: 1.8rem;
    }
    
    .video-grid,
    .memes-grid,
    .ugc-grid,
    .streams-grid {
        grid-template-columns: 1fr;
    }
    
    .stream-card {
        flex-direction: column;
    }
    
    .stream-thumbnail {
        width: 100%;
        height: 180px;
    }
}

/* ===== Auth Pages (Login/Register) ===== */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.auth-box {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i:first-child {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon input {
    width: 100%;
    padding: 14px 16px 14px 52px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.input-with-icon input::placeholder {
    padding-left: 0;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 4px rgba(255, 45, 117, 0.1);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.password-toggle:hover {
    color: var(--accent-pink);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-pink);
}

.forgot-link {
    font-size: 14px;
    color: var(--accent-pink);
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-login {
    display: flex;
    gap: 12px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--accent-pink);
    background: var(--bg-card-hover);
}

.btn-social.google i { color: #ea4335; }
.btn-social.twitch i { color: #9146ff; }
.btn-social.steam i { color: #1b2838; }

.auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-pink);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alert boxes */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
}

.alert i {
    font-size: 18px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* ===== Premium Page ===== */
.premium-header {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}

.premium-header h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700, #ffaa00, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.premium-header h1 i {
    background: none;
    -webkit-text-fill-color: #ffd700;
}

.premium-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-pink);
}

.pricing-card.featured {
    border-color: #ffd700;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.pricing-price {
    font-family: 'Exo 2', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-pink);
    margin: 16px 0;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.pricing-features li i {
    color: var(--accent-green);
}

.pricing-features li.disabled {
    color: var(--text-muted);
}

.pricing-features li.disabled i {
    color: var(--text-muted);
}

/* ===== Kontakt Page ===== */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.contact-method i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.contact-method-info h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.contact-method-info span {
    font-size: 16px;
    font-weight: 600;
}

.contact-form-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.contact-form-box h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .auth-box {
        margin: 0 20px;
        padding: 30px 24px;
    }
    
    .premium-header h1 {
        font-size: 2rem;
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
}

/* ===== Profile Page ===== */
.profile-page {
    padding: 2rem 0 4rem;
}

.profile-header {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.profile-header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
}

.profile-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-secondary);
    border: 4px solid var(--primary);
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.avatar-edit:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.profile-info .email {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.profile-info .role {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 0, 128, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--primary);
}

.profile-stats-grid {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.profile-stats-grid .stat-item {
    text-align: center;
}

.profile-stats-grid .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.profile-stats-grid .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.profile-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.profile-nav {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem;
    height: fit-content;
    border: 1px solid var(--border-color);
}

.profile-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition);
    margin-bottom: 0.25rem;
    text-decoration: none;
}

.profile-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.profile-nav a.active {
    background: rgba(255, 0, 128, 0.1);
    color: var(--primary);
}

.profile-nav a i {
    width: 20px;
    text-align: center;
}

.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.profile-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-card .form-group {
    margin-bottom: 1.5rem;
}

.profile-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.profile-card .form-group input,
.profile-card .form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-darker);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.profile-card .form-group input:focus,
.profile-card .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.profile-card .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.profile-card .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.profile-card .input-group {
    position: relative;
}

.profile-card .input-group input {
    padding-right: 3rem;
}

.profile-card .toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.profile-card .toggle-password:hover {
    color: var(--primary);
}

.member-since {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .profile-header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats-grid {
        margin: 0;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .profile-card .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Messages Page ===== */
.messages-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    height: calc(100vh - 200px);
    min-height: 500px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Conversations List */
.conversations-list {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.conversations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.conversations-header h2 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.conversations-search {
    padding: 1rem;
}

.conversations-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.conversations-items {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.3s;
}

.conversation-item:hover,
.conversation-item.active {
    background: rgba(255,255,255,0.05);
}

.conversation-item.unread {
    background: rgba(255, 45, 117, 0.1);
}

.conv-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.conv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.conv-info {
    flex: 1;
    min-width: 0;
}

.conv-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.conv-preview {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.empty-conversations {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-conversations i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Chat Area */
.chat-area {
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-name {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    max-width: 70%;
}

.message.sent {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
}

.message.sent .message-bubble {
    background: var(--primary);
    color: white;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    display: block;
}

.message.sent .message-time {
    text-align: right;
}

.chat-input {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.chat-input textarea {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    resize: none;
    max-height: 100px;
}

.send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.send-btn:hover {
    transform: scale(1.1);
}

.no-chat-selected {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.no-chat-selected i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-chat-selected h3 {
    margin-bottom: 0.5rem;
}

/* Messages Modal */
.messages-modal,
.message-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.messages-modal.active,
.message-modal.active,
.modal.active {
    display: flex;
}

.messages-modal .modal-content,
.message-modal .modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.messages-modal .modal-header,
.message-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.messages-modal .modal-header h3,
.message-modal .modal-header h3 {
    margin: 0;
}

.messages-modal .close-modal,
.message-modal .close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.messages-modal .modal-body,
.message-modal .modal-body {
    padding: 1.5rem;
}

.messages-modal .modal-body input,
.message-modal .modal-body input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border: none;
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.user-results {
    max-height: 300px;
    overflow-y: auto;
}

.user-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    color: var(--text-primary);
}

.user-result-item:hover {
    background: rgba(255,255,255,0.05);
}

/* Mobile */
.mobile-only {
    display: none;
}

.back-btn {
    padding: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

@media (max-width: 768px) {
    .messages-container {
        grid-template-columns: 1fr;
    }
    
    .conversations-list.hidden-mobile,
    .chat-area.hidden-mobile {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}

/* ===== Forum Page ===== */
.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 24px;
}

.forum-title h1 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-title h1 i {
    color: var(--primary);
}

.forum-title p {
    margin: 0;
    color: var(--text-secondary);
}

.forum-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.forum-stats .stat {
    text-align: center;
}

.forum-stats .stat i {
    font-size: 1.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.forum-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.forum-stats .stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.forum-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Forum Categories */
.forum-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forum-category-card {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.forum-category-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-color: var(--primary);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.category-info h3 {
    margin: 0 0 0.25rem;
}

.category-info p {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.category-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.category-stats i {
    margin-right: 0.25rem;
}

.category-latest {
    text-align: right;
    font-size: 0.85rem;
}

.latest-label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.latest-title {
    color: var(--primary);
}

.no-topics {
    color: var(--text-secondary);
    font-style: italic;
}

/* Forum Sidebar */
.forum-sidebar .sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.forum-sidebar .sidebar-widget h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forum-sidebar .sidebar-widget h3 i {
    color: var(--primary);
}

.recent-topic {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
}

.recent-topic:last-child {
    border-bottom: none;
}

.recent-topic:hover .topic-title {
    color: var(--primary);
}

.topic-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.topic-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-info {
    flex: 1;
    min-width: 0;
}

.topic-title {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.topic-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.forum-rules {
    list-style: none;
    padding: 0;
    margin: 0;
}

.forum-rules li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.forum-rules li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.forum-rules li:last-child {
    border-bottom: none;
}

.quick-links-forum a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.quick-links-forum a:hover {
    color: var(--primary);
}

.quick-links-forum a i {
    margin-right: 0.5rem;
    width: 20px;
    color: var(--primary);
}

.quick-links-forum a:last-child {
    border-bottom: none;
}

/* Forum Topic Page */
.forum-topic-header {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.forum-topic-header h1 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.forum-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.forum-topic-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.forum-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.forum-post {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.forum-post.original-post {
    border-left: 4px solid var(--primary);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.post-author {
    display: flex;
    gap: 12px;
}

.post-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-info {
    display: flex;
    flex-direction: column;
}

.post-author-name {
    font-weight: 600;
    color: var(--primary);
}

.post-author-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.post-content {
    line-height: 1.8;
    margin-bottom: 16px;
}

.post-actions {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.post-actions button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.post-actions button:hover {
    background: rgba(255,255,255,0.05);
    color: var(--primary);
}

/* Forum Reply Form */
.forum-reply-form {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-top: 24px;
    border: 1px solid var(--border-color);
}

.forum-reply-form h3 {
    margin-bottom: 16px;
}

.forum-reply-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    background: var(--bg-darker);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    resize: vertical;
    margin-bottom: 16px;
    font-family: inherit;
}

.forum-reply-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* New Topic Form */
.new-topic-form {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-color);
}

.new-topic-form h1 {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.new-topic-form h1 i {
    color: var(--primary);
}

.new-topic-form .form-group {
    margin-bottom: 20px;
}

.new-topic-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.new-topic-form input,
.new-topic-form select,
.new-topic-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-darker);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
}

.new-topic-form input:focus,
.new-topic-form select:focus,
.new-topic-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.new-topic-form textarea {
    min-height: 200px;
    resize: vertical;
}

@media (max-width: 992px) {
    .forum-layout {
        grid-template-columns: 1fr;
    }
    
    .forum-category-card {
        grid-template-columns: 50px 1fr;
    }
    
    .category-latest {
        display: none;
    }
    
    .forum-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .forum-sidebar .sidebar-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .forum-category-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .category-icon {
        margin: 0 auto;
    }
    
    .category-stats {
        justify-content: center;
    }
}

/* ===== Leaderboard Page ===== */
.leaderboard-filters {
    text-align: center;
    margin-bottom: 24px;
}

.leaderboard-filters .btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.my-stats-card {
    background: linear-gradient(135deg, rgba(255, 45, 117, 0.1), rgba(0, 209, 255, 0.1));
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.my-stats-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.my-rank .rank-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.my-rank .rank-label,
.my-xp .xp-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.my-level {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.level-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.my-xp .xp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.my-progress {
    flex: 1;
    min-width: 200px;
}

.progress-bar-custom {
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: block;
}

/* Podium */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    padding: 2rem 0;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.podium-user {
    position: relative;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar.gold-border {
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.user-level-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    border: 2px solid var(--bg-darker);
}

.podium-block {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    color: white;
    font-size: 2rem;
    font-weight: 800;
}

.podium-place.first .podium-block {
    height: 120px;
    background: linear-gradient(180deg, #FFD700, #FFA500);
}

.podium-place.second .podium-block {
    height: 90px;
    background: linear-gradient(180deg, #C0C0C0, #A0A0A0);
}

.podium-place.third .podium-block {
    height: 70px;
    background: linear-gradient(180deg, #CD7F32, #A0522D);
}

.crown-icon {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 0.5rem;
    animation: crown-float 2s ease-in-out infinite;
}

@keyframes crown-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.podium-info {
    text-align: center;
    margin-top: 1rem;
}

.podium-name {
    display: block;
    font-weight: 600;
}

.podium-xp {
    color: var(--primary);
    font-weight: 600;
}

/* Leaderboard Table */
.leaderboard-container {
    margin-bottom: 32px;
}

.leaderboard-table {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.leaderboard-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row:hover {
    background: rgba(255,255,255,0.03);
}

.leaderboard-row.is-me {
    background: rgba(255, 45, 117, 0.1);
}

.rank-col {
    width: 60px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.user-col {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    color: var(--text-primary);
    font-weight: 500;
}

.level-col {
    width: 150px;
}

.level-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: white;
}

.xp-col {
    width: 100px;
    text-align: right;
}

.xp-col .xp-value {
    font-weight: 700;
    color: var(--primary);
}

.xp-col .xp-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

/* XP Guide */
.xp-guide {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.xp-guide h2 {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.xp-guide h2 i {
    color: var(--primary);
}

.xp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.xp-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-lg);
}

.xp-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.xp-action {
    display: block;
    font-weight: 500;
}

.xp-reward {
    color: #4CAF50;
    font-weight: 700;
}

@media (max-width: 768px) {
    .my-stats-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .podium {
        flex-wrap: wrap;
    }
    
    .leaderboard-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .level-col,
    .xp-col {
        width: auto;
    }
}

/* ============================================
   AUTH PAGES - Login, Registration, Password Reset, etc.
   ============================================ */

.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.auth-box {
    max-width: 450px;
    margin: 0 auto;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(255, 0, 128, 0.1);
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.password-toggle:hover {
    color: var(--accent-pink);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input {
    margin-top: 3px;
}

.checkbox-label a {
    color: var(--accent-pink);
}

.forgot-link {
    color: var(--accent-pink);
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--accent-pink);
    font-weight: 500;
}

/* Auth Page Alternative Style (reset-lozinke) */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--darker, #0a0a0f) 0%, var(--dark, #12121a) 100%);
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--card-bg, var(--surface-color));
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 60px;
    width: auto;
}

.auth-logo h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.5rem;
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-title p {
    color: var(--text-secondary);
}

.auth-card .auth-form input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--darker, var(--bg-color));
    border: 2px solid transparent;
    border-radius: 0.75rem;
    color: var(--text-primary, var(--text-color));
    font-size: 1rem;
    transition: var(--transition);
}

.auth-card .auth-form input:focus {
    outline: none;
    border-color: var(--primary, var(--accent-pink));
    box-shadow: 0 0 0 4px rgba(255, 0, 128, 0.1);
}

.auth-card .auth-form .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--darker, var(--bg-color));
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s, background 0.3s;
}

.strength-text {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    color: var(--text-secondary);
}

/* Success/Error Icons */
.success-icon,
.error-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.success-icon {
    color: #22c55e;
}

.error-icon {
    color: #ef4444;
}

.auth-box h1 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.auth-box p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Unsubscribe Page */
.unsubscribe-page {
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
    padding: 40px;
    background: var(--bg-card, var(--surface-color));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.unsubscribe-page .success-message i,
.unsubscribe-page .error-message i {
    font-size: 64px;
    margin-bottom: 20px;
}

.unsubscribe-page .success-message i {
    color: #00ff88;
}

.unsubscribe-page .error-message i {
    color: var(--primary, var(--accent-pink));
}

.unsubscribe-page h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
}

.unsubscribe-page p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.unsubscribe-page .btn {
    margin-top: 20px;
}

/* Alert Boxes */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

@media (max-width: 480px) {
    .auth-box {
        padding: 24px;
    }
    
    .auth-card {
        padding: 2rem;
    }
}

/* Password Strength Indicators */
.strength-fill.weak { width: 33%; background: #ef4444; }
.strength-fill.medium { width: 66%; background: #f59e0b; }
.strength-fill.strong { width: 100%; background: #22c55e; }

/* Input Group for Password Toggle */
.input-group {
    position: relative;
}

.input-group input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

.toggle-password:hover {
    color: var(--primary, var(--accent-pink));
}

/* ============================================
   REVIEWS PAGE (recenzije.php)
   ============================================ */

.reviews-page { padding: 40px 0; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-header h1 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i { color: var(--accent-yellow); }
.page-header p { margin: 5px 0 0; color: var(--text-secondary); }

.filters-bar {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.filters-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filters-form select {
    padding: 12px 16px;
    background: var(--bg-card, var(--surface-color));
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary, var(--text-color));
    min-width: 150px;
}

.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-card {
    background: var(--bg-card, var(--surface-color));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: var(--accent-pink);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.review-game {
    display: flex;
    gap: 16px;
}

.game-cover {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.game-info h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.game-meta {
    display: flex;
    gap: 10px;
}

.game-meta span {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-hover);
}

.review-score {
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.review-score.high { background: linear-gradient(135deg, #00c853, #00e676); color: #000; }
.review-score.medium { background: linear-gradient(135deg, #ffc107, #ffca28); color: #000; }
.review-score.low { background: linear-gradient(135deg, #ff5252, #ff1744); color: #fff; }

.review-body { 
    color: var(--text-secondary); 
    line-height: 1.7;
    margin-bottom: 20px;
}

.review-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.pros h4, .cons h4 {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros h4 i { color: var(--accent-green); }
.cons h4 i { color: var(--accent-red); }

.pros ul, .cons ul {
    list-style: none;
    font-size: 14px;
}

.pros li, .cons li {
    padding: 6px 0;
    color: var(--text-secondary);
}

.pros li::before { content: '+ '; color: var(--accent-green); }
.cons li::before { content: '- '; color: var(--accent-red); }

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.premium-badge { color: var(--accent-yellow); font-size: 12px; }
.verified-badge { color: var(--accent-cyan); font-size: 12px; }

.author-date { font-size: 13px; color: var(--text-muted); display: block; }

.helpful-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.helpful-btn:hover, .helpful-btn.voted {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Reviews Sidebar */
.top-games {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-game {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-hover);
    border-radius: 10px;
}

.top-game .rank {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: var(--accent-yellow);
}

.top-game .game-info { flex: 1; }
.top-game h4 { margin: 0; font-size: 14px; }
.top-game .reviews-count { font-size: 12px; color: var(--text-muted); }
.top-game .avg-score {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-green);
}

.rating-guide {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.rating-item .score {
    width: 50px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.rating-item .score.high { background: rgba(0, 200, 83, 0.2); color: var(--accent-green); }
.rating-item .score.medium { background: rgba(255, 193, 7, 0.2); color: var(--accent-yellow); }
.rating-item .score.low { background: rgba(255, 82, 82, 0.2); color: var(--accent-red); }

/* Review Modal */
.modal-lg { max-width: 700px; }

.review-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .reviews-layout { grid-template-columns: 1fr; }
    .reviews-sidebar { order: -1; }
}

@media (max-width: 768px) {
    .review-pros-cons { grid-template-columns: 1fr; }
    .review-form .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   KREACIJE PAGE (kreacije.php)
   ============================================ */

.ugc-page { padding: 40px 0; }

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-tabs .tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-card, var(--surface-color));
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
}

.category-tabs .tab:hover,
.category-tabs .tab.active {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    color: white;
}

.featured-section {
    margin-bottom: 40px;
}

.featured-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.featured-section h2 i { color: var(--accent-yellow); }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.featured-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card, var(--surface-color));
}

.featured-image {
    position: relative;
    aspect-ratio: 16/10;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.type-badge.fanart { background: var(--accent-pink); }
.type-badge.guide { background: var(--accent-cyan); }
.type-badge.build { background: var(--accent-purple); }
.type-badge.video { background: var(--accent-red); }
.type-badge.meme { background: var(--accent-yellow); color: #000; }

.featured-content {
    padding: 20px;
}

.featured-content h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.featured-meta .author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-meta .author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.ugc-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.ugc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ugc-card {
    position: relative;
    background: var(--bg-card, var(--surface-color));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ugc-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-pink);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ugc-card .card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.ugc-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
}

.ugc-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 45, 117, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.featured-indicator {
    position: absolute;
    bottom: 12px;
    left: 12px;
    color: var(--accent-yellow);
    font-size: 18px;
}

.ugc-content {
    padding: 16px;
}

.ugc-content h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.4;
}

.game-tag {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    background: var(--bg-hover);
    border-radius: 20px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.ugc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.ugc-footer .author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.ugc-footer .author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.ugc-footer .author i.fa-crown {
    color: var(--accent-yellow);
    font-size: 10px;
}

.ugc-footer .stats {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.ugc-footer .stats i {
    margin-right: 4px;
}

/* Kreacije Sidebar */
.top-creators {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.creator-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-hover);
    border-radius: 10px;
    transition: all 0.2s;
}

.creator-item:hover {
    background: var(--bg-card-hover);
}

.creator-item .rank {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: var(--accent-yellow);
    width: 24px;
}

.creator-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-card, var(--surface-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.creator-avatar img { width: 100%; height: 100%; object-fit: cover; }

.creator-info { flex: 1; }
.creator-info .name { display: block; font-weight: 600; font-size: 14px; }
.creator-info .name .premium { color: var(--accent-yellow); font-size: 10px; margin-left: 4px; }
.creator-info .stats { font-size: 12px; color: var(--text-muted); }

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-tag-btn {
    padding: 8px 14px;
    background: var(--bg-hover);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.game-tag-btn:hover {
    background: var(--accent-pink);
    color: white;
}

.game-tag-btn span {
    margin-left: 6px;
    opacity: 0.7;
}

.cta-widget {
    text-align: center;
    background: var(--gradient-primary);
    border: none;
}

.cta-widget i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.cta-widget h3 { color: white; }
.cta-widget p { color: rgba(255,255,255,0.8); margin-bottom: 20px; }

/* Type selector */
.type-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.type-option {
    cursor: pointer;
}

.type-option input { display: none; }

.type-option span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-hover);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s;
}

.type-option input:checked + span {
    border-color: var(--accent-pink);
    background: rgba(255, 45, 117, 0.1);
    color: var(--accent-pink);
}

@media (max-width: 1200px) {
    .ugc-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .ugc-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .ugc-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .category-tabs { flex-wrap: nowrap; }
}

/* ============================================
   STORY PAGE (story.php)
   ============================================ */

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.story-preview {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
}

.story-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-preview-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.story-preview-info h3 {
    margin: 0;
    color: white;
    font-size: 1rem;
}

/* ============================================
   MEMES PAGE (memes.php)
   ============================================ */

.memes-header {
    text-align: center;
    margin-bottom: 2rem;
}

.memes-header h1 {
    margin: 0;
}

.memes-header p {
    color: var(--text-secondary);
    margin: 0.5rem 0 1rem;
}

.memes-filters {
    display: flex;
    justify-content: center;
}

.filter-tabs {
    display: flex;
    background: var(--card-bg, var(--surface-color));
    border-radius: 30px;
    padding: 0.25rem;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.filter-tab:hover {
    background: rgba(255,255,255,0.1);
}

.filter-tab.active {
    background: var(--primary-color, var(--accent-pink));
}

/* Memes Grid - Masonry style */
.memes-grid {
    columns: 3;
    column-gap: 1.5rem;
}

.meme-card {
    break-inside: avoid;
    background: var(--card-bg, var(--surface-color));
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.meme-card:hover {
    transform: translateY(-5px);
}

.meme-image img {
    width: 100%;
    display: block;
}

.meme-content {
    padding: 1rem;
}

.meme-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.meme-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.meme-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vote-buttons {
    display: flex;
    gap: 0.5rem;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.3s;
}

.vote-btn:hover {
    background: rgba(255,255,255,0.1);
}

.vote-btn.upvote:hover,
.vote-btn.upvote.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.vote-btn.downvote:hover,
.vote-btn.downvote.active {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.share-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-color);
    cursor: pointer;
}

.share-btn:hover {
    background: var(--primary-color, var(--accent-pink));
}

/* Upload Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg, var(--surface-color));
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-header h3 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

.upload-area {
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
    position: relative;
}

.upload-area:hover {
    border-color: var(--primary-color, var(--accent-pink));
}

.upload-area i {
    font-size: 2.5rem;
    color: var(--primary-color, var(--accent-pink));
    margin-bottom: 0.5rem;
}

.upload-area input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-preview {
    margin-top: 1rem;
}

.upload-preview img {
    max-width: 100%;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .memes-grid {
        columns: 2;
    }
}

@media (max-width: 576px) {
    .memes-grid {
        columns: 1;
    }
}

/* ============================================
   KVIZ PAGE (kviz.php)
   ============================================ */

.quiz-page {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.quiz-container {
    background: var(--bg-card, var(--surface-color));
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.quiz-header h2 {
    margin-bottom: 0.5rem;
}

.quiz-header p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.quiz-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.quiz-info i {
    margin-right: 0.25rem;
    color: var(--accent-pink);
}

.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 8px;
    background: var(--bg-secondary, var(--bg-color));
    border-radius: var(--radius-full, 50px);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    display: block;
}

.quiz-question {
    animation: fadeIn 0.3s ease;
}

.question-number {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full, 50px);
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.question-image {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
}

.question-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary, var(--bg-color));
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md, 12px);
    cursor: pointer;
    transition: all var(--transition-fast, 0.2s);
}

.option-label:hover {
    border-color: var(--accent-pink);
    background: var(--bg-hover);
}

.option-label input {
    display: none;
}

.option-label input:checked + .option-text + .option-check {
    opacity: 1;
    transform: scale(1);
}

.option-label:has(input:checked) {
    border-color: var(--accent-pink);
    background: rgba(255, 45, 117, 0.1);
}

.option-text {
    flex: 1;
    font-weight: 500;
}

.option-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-pink);
    color: white;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition-fast, 0.2s);
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Quiz Results */
.quiz-results {
    text-align: center;
    padding: 3rem 1rem;
}

.results-icon {
    font-size: 4rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    animation: bounce 1s ease infinite;
}

.results-score {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
}

.score-value {
    color: var(--accent-pink);
}

.score-total {
    color: var(--text-muted);
}

.results-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.no-quiz .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card, var(--surface-color));
    border-radius: var(--radius-lg, 16px);
    border: 1px solid var(--border-color);
}

.no-quiz .empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
