/* TheHighCommand.net - Main Stylesheet */

:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --dark-bg: #1a1a1a;
    --darker-bg: #0d0d0d;
    --card-bg: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-green: #3ddc84;
    --hover-green: #45f594;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.3);
    border-bottom: 2px solid var(--primary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0 0;
    max-width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding-left: 20px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    white-space: nowrap;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1 1 auto;
    justify-content: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    border-radius: 5px;
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(46, 204, 113, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(46, 204, 113, 0.2);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
    padding-right: 20px;
}

.user-dropdown {
    position: relative;
}

.user-dropdown::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.user-btn {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.user-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.user-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-menu a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-bg);
    font-weight: bold;
}

.btn-primary:hover {
    background: var(--hover-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.3) 0%, rgba(13, 13, 13, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(46, 204, 113, 0.8));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(46, 204, 113, 0.8), 0 0 60px rgba(46, 204, 113, 0.4);
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-primary);
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.btn-large {
    font-size: 1.3rem;
    padding: 1rem 3rem;
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.5);
}

/* Stats Section */
.stats-section {
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(46, 204, 113, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.stat-card:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.4);
}

.stat-icon-wrapper {
    position: relative;
    z-index: 1;
}

.stat-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.3s;
}

.stat-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.article-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.article-excerpt {
    color: var(--text-secondary);
    margin: 1rem 0;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* Creator Cards */
.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.creator-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.creator-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.creator-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-bottom: 1rem;
}

.creator-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.creator-stats {
    color: var(--text-secondary);
    margin: 1rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--hover-green);
    transform: scale(1.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content input {
    padding: 0.75rem;
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--hover-green);
}

.modal-footer {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 2px solid var(--primary-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-icon {
    max-width: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.5));
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.section {
    padding: 4rem 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.section-alt {
    background: rgba(46, 204, 113, 0.03);
}

.creators-section {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(39, 174, 96, 0.02) 100%);
}

.section-decoration {
    position: absolute;
    top: 20%;
    right: 5%;
    font-size: 15rem;
    opacity: 0.03;
    pointer-events: none;
}

.section-decoration::before {
    content: '🎮';
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-placeholder p {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.oauth-btn i {
    font-size: 1.5rem;
}

.oauth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.google-btn {
    background: #fff;
    color: #757575;
    border-color: #ddd;
}

.google-btn:hover {
    background: #f8f8f8;
    border-color: #4285f4;
}

.twitch-btn {
    background: #9146FF;
    color: white;
}

.twitch-btn:hover {
    background: #7d3be0;
    box-shadow: 0 5px 20px rgba(145, 70, 255, 0.4);
}

.discord-btn {
    background: #5865F2;
    color: white;
}

.discord-btn:hover {
    background: #4752c4;
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
}

.oauth-btn-primary {
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(88, 101, 242, 0.3);
    }
    50% {
        box-shadow: 0 5px 30px rgba(88, 101, 242, 0.6);
    }
}

.steam-btn {
    background: #171a21;
    color: white;
    border-color: #66c0f4;
}

.steam-btn:hover {
    background: #1b2838;
    box-shadow: 0 5px 20px rgba(102, 192, 244, 0.4);
}

.kick-btn {
    background: #53fc18;
    color: #0f0f0f;
}

.kick-btn:hover {
    background: #42d012;
    box-shadow: 0 5px 20px rgba(83, 252, 24, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .articles-grid,
    .creators-grid {
        grid-template-columns: 1fr;
    }
}
