/* 2004Scape Common Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 3px solid #ffd700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
}

.logo h1 {
    color: #ffd700;
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Navigation */
.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #ffd700;
}

.play-button {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #000;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 900;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(255,215,0,0.3);
    text-shadow: 1px 1px 1px rgba(255,255,255,0.3);
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.5);
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

/* Page Title */
.page-title {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    padding: 60px 20px;
    text-align: center;
}

.page-title h1 {
    font-size: 48px;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

.page-title p {
    font-size: 20px;
    color: #ccc;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.container.narrow {
    max-width: 1000px;
}

/* Cards and Sections */
.card, .guide-section, .rule-section {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.card h2, .guide-section h2, .rule-section h2 {
    color: #ffd700;
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3, .guide-section h3 {
    color: #ffd700;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Content Typography */
.content p, .guide-content p, .rule-content p {
    margin-bottom: 15px;
}

.content ul, .content ol, .guide-content ul, .guide-content ol, .rule-content ul, .rule-content ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.content li, .guide-content li, .rule-content li {
    margin-bottom: 8px;
}

/* Info Boxes */
.tip-box, .info-box {
    background: rgba(255,215,0,0.1);
    border: 1px solid #ffd700;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.tip-box strong, .info-box strong {
    color: #ffd700;
}

.warning-box {
    background: rgba(244,67,54,0.1);
    border: 1px solid #f44336;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.warning-box strong {
    color: #ff6666;
}

/* Tables */
.data-table, .skill-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th, .skill-table th {
    background: rgba(0,0,0,0.5);
    color: #ffd700;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #444;
}

.data-table td, .skill-table td {
    padding: 10px;
    border-bottom: 1px solid #333;
}

.data-table tr:hover, .skill-table tr:hover {
    background: rgba(255,215,0,0.05);
}

/* Numbered Items */
.rule-number, .step-number {
    background: #ffd700;
    color: #1a1a1a;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.rule-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

/* Step Boxes */
.step-box {
    background: rgba(0,0,0,0.3);
    border-left: 4px solid #ffd700;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.quick-link {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border-color: #ffd700;
}

.quick-link-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.quick-link h3 {
    color: #ffd700;
    margin-bottom: 5px;
}

/* Features Grid (Homepage) */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border-color: #ffd700;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffd700;
}

.feature h3 {
    color: #ffd700;
    font-size: 24px;
    margin-bottom: 15px;
}

/* Server Stats (Homepage) */
.server-stats {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat {
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.stat-label {
    font-size: 16px;
    color: #ccc;
    margin-top: 5px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.cta-section h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 10px;
}

.cta-section p {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Rules Navigation */
.rules-nav {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.rules-nav h2 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 24px;
}

.rules-nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.rules-nav a {
    display: block;
    background: rgba(0,0,0,0.3);
    padding: 12px 20px;
    border-radius: 5px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #333;
}

.rules-nav a:hover {
    background: rgba(255,215,0,0.1);
    border-color: #ffd700;
    transform: translateX(5px);
}

/* Back to Top */
.back-to-top {
    text-align: center;
    margin: 40px 0;
}

.back-to-top a {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(255,215,0,0.3);
}

.back-to-top a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.5);
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 40px 20px 20px;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 60px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffd700;
}

.copyright {
    color: #666;
    font-size: 14px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 20px;
    background: rgba(0,0,0,0.3);
    border: 1px solid #444;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #fff;
}

.btn-danger:hover {
    box-shadow: 0 5px 15px rgba(244,67,54,0.3);
}

/* Status Messages */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 500;
}

.alert-success {
    background: rgba(76,175,80,0.1);
    border: 1px solid #4caf50;
    color: #81c784;
}

.alert-error {
    background: rgba(244,67,54,0.1);
    border: 1px solid #f44336;
    color: #ef5350;
}

/* Login Info (Homepage) */
.login-info {
    background: rgba(76,175,80,0.1);
    border: 1px solid #4caf50;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.login-info strong {
    color: #81c784;
}

/* Hero Section (Homepage) */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/hero-bg.jpg') center/cover;
    padding: 100px 20px;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 56px;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 24px;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-button.primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
}

.hero-button.secondary {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Badge */
.badge {
    display: inline-block;
    background: #ffd700;
    color: #1a1a1a;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

/* News Articles */
.news-article {
    background: rgba(0,0,0,0.3);
    border-left: 4px solid #ffd700;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.news-title {
    color: #ffd700;
    font-size: 20px;
    font-weight: bold;
}

.news-meta {
    color: #888;
    font-size: 14px;
}

.news-content {
    color: #e0e0e0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .page-title h1 {
        font-size: 36px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
}

/* Smooth Scrolling - REMOVED: Can break position:fixed in some browsers */
/* html {
    scroll-behavior: smooth;
} */

/* Selection */
::selection {
    background: #ffd700;
    color: #1a1a1a;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffed4e;
}