/* Page styles: index.php */

/* Hero Section with Slideshow */
        .hero {
            margin-top: 80px;
            min-height: 600px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            overflow: hidden;
            padding: 4rem 2rem;
        }

/* Slideshow background */
        .hero-slideshow {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 0;
        }

.hero-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 1.5s ease-in-out;
            filter: blur(3px);
            transform: scale(1.05);
        }

.hero-slide.active {
            opacity: 1;
        }

/* Dark overlay for text readability */
        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                135deg,
                rgba(10, 10, 10, 0.85) 0%,
                rgba(10, 10, 10, 0.7) 50%,
                rgba(10, 10, 10, 0.85) 100%
            );
            z-index: 1;
        }

/* Gradient accent overlay */
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(circle at 20% 30%, rgba(255, 107, 26, 0.18) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 45, 120, 0.14) 0%, transparent 50%),
                radial-gradient(circle at 50% 100%, rgba(34, 211, 238, 0.1) 0%, transparent 55%);
            pointer-events: none;
            z-index: 2;
        }

.hero-content {
            position: relative;
            z-index: 3;
            max-width: 900px;
        }

.hero h1 {
            font-size: 4rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            line-height: 1.1;
        }

.hero h1 .gradient-text {
            background: var(--gradient-sunset);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

.hero p {
            font-size: 1.3rem;
            color: var(--text-muted);
            margin-bottom: 2.5rem;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

.hero-buttons {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
        }

/* News & Updates Section */
        .news-section {
            padding: 4rem 2rem;
            background: var(--bg-darker);
        }

.news-container {
            max-width: 1400px;
            margin: 0 auto;
        }

.section-title {
            font-size: 2.5rem;
            font-weight: 800;
            text-align: center;
            margin-bottom: 3rem;
        }

.news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }

.news-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s;
        }

.news-card:hover {
            transform: translateY(-5px);
            border-color: var(--pink);
            box-shadow: 0 10px 40px rgba(255, 45, 120, 0.2);
        }

.news-card-icon {
            width: 100%;
            height: 120px;
            background: linear-gradient(135deg, rgba(255, 107, 26, 0.2) 0%, rgba(162, 28, 175, 0.08) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
        }

.news-card-content {
            padding: 1.5rem;
        }

.news-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
        }

.news-card-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--text);
            margin: 0;
            flex: 1;
        }

.news-card-pin {
            color: var(--pink);
            font-size: 1.2rem;
            margin-left: 0.5rem;
        }

.news-card-meta {
            display: flex;
            gap: 1rem;
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }

.news-card-text {
            color: var(--text-muted);
            line-height: 1.6;
            margin: 0;
        }

/* News Modal */
        .news-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            overflow-y: auto;
        }

.news-modal.active {
            display: flex;
        }

.news-modal-content {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            margin: auto;
        }

.news-modal-header {
            background: linear-gradient(135deg, rgba(255, 107, 26, 0.2) 0%, rgba(162, 28, 175, 0.08) 100%);
            padding: 2rem;
            border-bottom: 1px solid var(--border);
            position: relative;
        }

.news-modal-icon {
            font-size: 4rem;
            text-align: center;
            margin-bottom: 1rem;
        }

.news-modal-title {
            font-size: 2rem;
            font-weight: 800;
            text-align: center;
            margin-bottom: 1rem;
            color: var(--text);
        }

.news-modal-meta {
            display: flex;
            gap: 1rem;
            justify-content: center;
            font-size: 0.9rem;
            color: var(--text-muted);
        }

.news-modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: var(--text);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

.news-modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }

.news-modal-body {
            padding: 2rem;
            line-height: 1.8;
            color: var(--text);
            font-size: 1.1rem;
        }

.news-modal-body p {
            margin-bottom: 1rem;
            white-space: pre-wrap;
        }

.news-empty {
            text-align: center;
            padding: 4rem 2rem;
            color: var(--text-muted);
        }

.news-empty-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
            opacity: 0.3;
        }

.btn-primary {
            background: var(--gradient-sunset);
            color: #111;
            padding: 1rem 2.5rem;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s;
            display: inline-block;
        }

.btn-primary:hover {
            filter: brightness(1.08);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(255, 45, 120, 0.35);
        }

.btn-secondary {
            background: transparent;
            color: var(--text);
            padding: 1rem 2.5rem;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            border: 2px solid var(--border);
            transition: all 0.3s;
            display: inline-block;
        }

.btn-secondary:hover {
            border-color: var(--cyan);
            background: rgba(34, 211, 238, 0.1);
        }

/* Servers Section */
        .servers-section {
            padding: 5rem 2rem;
            background: var(--bg-dark);
        }

.section-header {
            max-width: 1400px;
            margin: 0 auto 3rem;
            text-align: center;
        }

.section-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 1rem;
        }

.section-subtitle {
            font-size: 1.1rem;
            color: var(--text-muted);
        }

.servers-grid {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2rem;
        }

.server-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s;
        }

.server-card:hover {
            transform: translateY(-5px);
            border-color: var(--cyan);
            box-shadow: 0 10px 40px rgba(34, 211, 238, 0.15);
        }

.server-header {
            padding: 1.5rem;
            background: linear-gradient(135deg, rgba(255, 107, 26, 0.1) 0%, transparent 100%);
            border-bottom: 1px solid var(--border);
        }

.server-name {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--text);
        }

.server-address {
            font-family: monospace;
            font-size: 0.9rem;
            color: var(--text-muted);
            background: var(--bg-dark);
            padding: 0.5rem;
            border-radius: 6px;
            margin-top: 0.5rem;
        }

.server-status {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-muted);
            margin-top: 0.25rem;
        }

.server-status .dot {
            width: 10px; height: 10px; border-radius: 50%;
            background: #6b7280;
        }

.server-status[data-state="online"] { color: #4ade80; }

.server-status[data-state="online"] .dot { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.7); }

.server-status[data-state="offline"] { color: #f87171; }

.server-status[data-state="offline"] .dot { background: #ef4444; }

.server-status[data-state="checking"] .dot { animation: srvpulse 1.2s ease-in-out infinite; }

@keyframes srvpulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

.server-card[data-state="offline"] .btn-join { opacity: .45; pointer-events: none; filter: grayscale(.6); }

.players-total { color: #4ade80; font-weight: 600; }

.server-body {
            padding: 1.5rem;
        }

.btn-join {
            width: 100%;
            background: var(--gradient-sunset);
            color: #111;
            padding: 1rem;
            border-radius: 8px;
            text-decoration: none;
            text-align: center;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s;
            display: block;
        }

.btn-join:hover {
            filter: brightness(1.08);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(255, 45, 120, 0.3);
        }

.empty-state {
            text-align: center;
            padding: 4rem;
            color: var(--text-muted);
        }

@media (max-width: 768px) {
    .hero h1 {
                font-size: 2.5rem;
            }
    .servers-grid {
                grid-template-columns: 1fr;
            }
}
