:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #2ecc71;
    --warning: #f39c12;
    --offline: #95a5a6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Stream Section Styles */
.stream-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stream-section h4 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.stream-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.stream-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
    justify-content: center;
}

.stream-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Twitch Button */
.twitch-button {
    background: linear-gradient(135deg, #9146ff, #6441a5);
    color: white;
    border: 2px solid #6441a5;
}

.twitch-button:hover {
    background: linear-gradient(135deg, #6441a5, #4a3278);
    color: white;
}

/* YouTube Button */
.youtube-button {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: 2px solid #cc0000;
}

.youtube-button:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    color: white;
}

/* Twitch Status Indicator */
.twitch-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    margin: 1rem 0;
    transition: all 0.3s ease;
    border-left: 4px solid;
    background: white;
}

.twitch-live {
    background: rgba(145, 70, 255, 0.1);
    border-left-color: #9146ff;
    color: #9146ff;
}

.twitch-offline {
    background: rgba(149, 165, 166, 0.1);
    border-left-color: var(--offline);
    color: var(--offline);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--offline);
}

.twitch-live .status-dot {
    background: #ff0000;
    animation: pulse 2s infinite;
}

.watch-button {
    background: #9146ff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: auto;
    transition: background 0.3s ease;
}

.watch-button:hover {
    background: #6441a5;
    color: white;
}

.twitch-status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stream-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stream-button {
        min-width: 250px;
    }
    
    .twitch-status {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .watch-button {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.logo { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.tagline { font-size: 1.2rem; opacity: 0.9; margin-bottom: 1rem; }

/* Navigation */
nav {
    background-color: var(--dark);
    padding: 1rem 0;
}
nav ul { display: flex; justify-content: center; list-style: none; }
nav li { margin: 0 1rem; }
nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}
nav a:hover { background-color: rgba(255,255,255,0.1); }

/* Sections */
section { padding: 4rem 0; }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
}
.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    margin: 0.5rem auto;
    border-radius: 2px;
}

.hero { background-color: var(--light); text-align: center; padding: 4rem 0; }
.hero h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--primary); }
.hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.btn-accent { background-color: var(--accent); }
.btn-accent:hover { background-color: #c0392b; }

/* Grid and Cards */
.services-grid, .server-details { display: grid; gap: 2rem; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.server-details { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.service-card, .detail-card, .server-info {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}
.service-card:hover { transform: translateY(-5px); transition: 0.3s; }
.detail-card { background-color: #f5f5f5; border-left: 4px solid var(--secondary); }

/* Minecraft Status */
.status-indicator { display: inline-flex; align-items: center; padding: 0.5rem 1rem; border-radius: 20px; font-weight: 600; margin-left: 1rem; }
.status-online { background-color: var(--success); color: white; }
.status-offline { background-color: var(--offline); color: white; }
.status-checking { background-color: var(--warning); color: white; }
.server-address {
    background: var(--dark);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1.2rem;
    text-align: center;
    margin: 1rem 0;
    border: 2px dashed var(--secondary);
    cursor: pointer;
    transition: background-color 0.3s;
}
.server-address:hover { background: var(--primary); }

/* Discord Link */
.discord-link { display: inline-flex; align-items: center; background-color: #5865F2; color: white; padding: 0.8rem 1.5rem; border-radius: 4px; font-weight: 600; text-decoration: none; margin-top: 1rem; }
.discord-link:hover { background-color: #4752c4; }

/* Footer */
footer { background-color: var(--dark); color: white; padding: 3rem 0; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; }
copyright { margin-top: 2rem; opacity: 0.7; font-size: 0.9rem; }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); z-index: 1000; overflow: auto; }
.modal-content { background-color: white; margin: 5% auto; padding: 2rem; border-radius: 8px; max-width: 800px; width: 90%; position: relative; }
.close-modal { position: absolute; top: 1rem; right: 1.5rem; font-size: 1.5rem; cursor: pointer; color: #777; }
.close-modal:hover { color: #333; }

@media (max-width: 768px) {
    nav ul { flex-direction: column; align-items: center; }
    nav li { margin: 0.5rem 0; }
    .hero h2 { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .server-details { grid-template-columns: 1fr; }
}
