/* RP Hub Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-primary: #a78bfa;
    --accent-secondary: #7c3aed;
    --accent-hover: #c4b5fd;
    --border-color: #2a2a2a;
    --border-accent: #a78bfa;
    --success: #51cf66;
    --error: #ff6b6b;
    --warning: #ffd43b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        /* Diagonal purple lines */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(167, 139, 250, 0.03) 100px,
            rgba(167, 139, 250, 0.03) 102px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 100px,
            rgba(167, 139, 250, 0.03) 100px,
            rgba(167, 139, 250, 0.03) 102px
        ),
        /* Dark gradient base */
        radial-gradient(circle at 20% 50%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Animated purple glow effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(167, 139, 250, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 25%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--accent-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(167, 139, 250, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.75rem;
}

.nav-menu a {
    color: var(--text-primary);
    background-color: rgba(167, 139, 250, 0.1);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    transition: all 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(167, 139, 250, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.3);
    transform: translateY(-2px);
}

.nav-menu a.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    box-shadow: 0 2px 10px rgba(167, 139, 250, 0.4);
}

/* Hero Section */
.hero {
    background: 
        linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%), 
        url('Twitter_Banner.png') center/cover;
    border-bottom: 3px solid var(--accent-primary);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -3px 10px rgba(167, 139, 250, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #a78bfa, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(167, 139, 250, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Info Cards */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-primary);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s, border-left-width 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(167, 139, 250, 0.4);
    border-left-width: 5px;
}

.info-card h2,
.info-card h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.update-list {
    list-style: none;
    padding-left: 0;
}

.update-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.update-list li:last-child {
    border-bottom: none;
}

.update-list li:before {
    content: "▸ ";
    color: var(--accent-primary);
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(167, 139, 250, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-primary));
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 2px 10px rgba(167, 139, 250, 0.2);
}

.btn-secondary:hover {
    background-color: var(--bg-card);
    border-color: var(--accent-hover);
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.quick-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-primary);
    border-radius: 8px;
    padding: 3rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(167, 139, 250, 0.2);
}

.login-box h2 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.login-box input {
    width: 100%;
    padding: 0.75rem;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
}

.error-msg {
    color: var(--error);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Protected Content */
.protected-content {
    animation: fadeIn 0.5s;
}

.success-banner {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(167, 139, 250, 0.05));
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
}

.success-banner h2 {
    color: var(--accent-primary);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 5px 20px rgba(167, 139, 250, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-item {
    background-color: var(--bg-card);
    border: 2px dashed rgba(167, 139, 250, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.placeholder-item:hover {
    transform: none;
}

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

.placeholder-content p {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

/* Minigames */
.minigames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card, .story-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-top-width 0.3s;
}

.story-card {
    text-align: left;
    cursor: pointer;
}

.game-card:hover, .story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(167, 139, 250, 0.4);
    border-top-width: 5px;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.status-ongoing {
    background-color: rgba(81, 207, 102, 0.2);
    color: #51cf66;
    border: 1px solid #51cf66;
}

.status-finished {
    background-color: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
    border: 1px solid #a78bfa;
}

.status-tentative {
    background-color: rgba(255, 212, 59, 0.2);
    color: #ffd43b;
    border: 1px solid #ffd43b;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* Story Content */
.story-content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.3s;
}

.story-content.revealed {
    display: block;
}

.story-links {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.story-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.story-link:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-primary));
    transform: translateY(-2px);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-card h3 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.game-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Code blocks */
pre {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

code {
    color: var(--accent-primary);
    font-family: 'Courier New', monospace;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    border-top: 2px solid var(--accent-primary);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(167, 139, 250, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .info-section,
    .minigames-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }
}
