/* Ignis SMP Website Styles - Blocky Pixelated Version */
:root {
    /* Minecraft-inspired color palette */
    --bg-dark: #1B262F;
    --bg-medium: #2F3E46;
    --bg-light: #3B4F58;
    --accent-moss: #A3B18A;
    --accent-wood: #8B6D5C;
    --accent-sand: #D4A373;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --text-muted: #B0B0B0;
    --border-dark: #555555;
    --border-light: #777777;
}

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

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.4;
    padding: 20px;
}

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

/* Add blocky border to container */
.container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid var(--border-dark);
    pointer-events: none;
    z-index: -1;
}

/* Header */
header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 6px solid var(--border-dark);
    margin-bottom: 40px;
    position: relative;
}

/* Server icon container */
.server-icon-container {
    margin: 0 auto 20px;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Pixelated header background */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            45deg,
            var(--bg-dark),
            var(--bg-dark) 10px,
            var(--bg-medium) 10px,
            var(--bg-medium) 20px
        );
    opacity: 0.3;
    pointer-events: none;
}

.server-icon {
    width: 80px;
    height: 80px;
    border: 4px solid var(--border-dark);
    box-shadow: 0 0 0 2px var(--border-light);
    background: var(--bg-light);
}

h1 {
    font-size: 2.2rem;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--accent-moss), var(--accent-sand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

/* Add pixel outline to heading */
h1::after {
    content: attr(data-content);
    position: absolute;
    left: -2px;
    top: 2px;
    color: var(--border-dark);
    z-index: -1;
}

/* Tagline */
.tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Main content */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

/* Buttons section */
.buttons-section {
    flex: 1;
    min-width: 260px;
    text-align: center;
}

.buttons-section h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--accent-moss);
    text-shadow: 1px 1px 0px rgba(0,0,0,0.3);
    position: relative;
    display: inline-block;
}

/* Button container */
.btn-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Blocky pixel buttons */
.btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.1s ease;
    text-decoration: none;
    text-align: center;
    min-width: 180px;
    box-shadow: 4px 4px 0px 0px var(--border-dark);
    border-radius: 0px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.4);
    border: 2px solid var(--border-dark);
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    color: var(--text-primary);
    /* Pixelated inner shadow */
    box-shadow:
        inset 0px 0px 0px 1px rgba(255,255,255,0.1),
        4px 4px 0px 0px var(--border-dark);
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow:
        inset 0px 0px 0px 1px rgba(255,255,255,0.1),
        6px 6px 0px 0px var(--border-dark);
}

.btn:active {
    transform: translate(0px, 0px);
    box-shadow:
        inset 0px 0px 0px 1px rgba(255,255,255,0.1),
        2px 2px 0px 0px var(--border-dark);
}

/* Button specific colors */
.btn-vanilla {
    background: #4CAF50;
    color: white;
}

.btn-vanilla:hover {
    background: #66BB6A;
}

.btn-modrinth {
    background: #FF9800;
    color: white;
}

.btn-modrinth:hover {
    background: #FFB74D;
}

.btn-curseforge {
    background: #9C27B0;
    color: white;
}

.btn-curseforge:hover {
    background: #BA68C8;
}

/* Add pixel effect to buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0,0,0,0.05) 1px,
            rgba(0,0,0,0.05) 2px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(0,0,0,0.05) 1px,
            rgba(0,0,0,0.05) 2px
        );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s;
}

.btn:hover::before {
    opacity: 1;
}

/* Rules section */
.rules-section {
    flex: 1;
    min-width: 260px;
    background: var(--bg-light);
    border: 4px solid var(--border-dark);
    padding: 20px;
    box-shadow: 4px 4px 0px 0px var(--border-dark);
}

.rules-section h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent-moss);
    text-align: center;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.3);
    position: relative;
    display: inline-block;
}

.rules-list {
    list-style-type: none;
    line-height: 1.6;
}

.rules-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 20px;
    font-size: 0.85rem;
}

.rules-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-sand);
    font-size: 0.9rem;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 4px solid var(--border-dark);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        align-items: center;
    }

    .buttons-section,
    .rules-section {
        width: 100%;
        max-width: 350px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .server-icon {
        width: 60px;
        height: 60px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.7rem;
        min-width: 140px;
    }

    .rules-section {
        padding: 15px;
    }

    .rules-section h2 {
        font-size: 1.2rem;
    }
}

