/* === SourMC Website Styles === */
/* Matching the orange-purple gradient Minecraft store design */

/* --- VARIABLES --- */
:root {
    --orange-start: #ff9500;
    --orange-mid: #ff7b00;
    --purple-mid: #9b4dca;
    --purple-end: #6b2d8a;
    --purple-dark: #4a1f6b;
    --brown-dark: #3d2817;
    --text-main: #ffffff;
    --text-dark: #2d1f3d;
    --font-main: 'Poppins', sans-serif;
    --font-display: 'Fredoka One', cursive;
}

/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    background: linear-gradient(180deg, 
        var(--orange-start) 0%, 
        var(--orange-mid) 15%,
        var(--purple-mid) 40%, 
        var(--purple-end) 70%,
        var(--purple-dark) 100%);
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- PIXEL DECORATIONS --- */
.pixel-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.pixel {
    position: absolute;
    background: rgba(255, 200, 150, 0.3);
    border-radius: 2px;
}

.pixel-1 {
    width: 40px;
    height: 40px;
    bottom: 10%;
    left: 5%;
    transform: rotate(15deg);
}

.pixel-2 {
    width: 60px;
    height: 60px;
    bottom: 15%;
    left: 2%;
    background: rgba(255, 180, 120, 0.4);
}

.pixel-3 {
    width: 30px;
    height: 30px;
    bottom: 5%;
    left: 8%;
    transform: rotate(-10deg);
}

.pixel-4 {
    width: 50px;
    height: 50px;
    bottom: 8%;
    right: 5%;
    background: rgba(255, 200, 150, 0.5);
}

.pixel-5 {
    width: 35px;
    height: 35px;
    bottom: 20%;
    right: 3%;
    transform: rotate(20deg);
}

.pixel-6 {
    width: 25px;
    height: 25px;
    bottom: 12%;
    right: 10%;
}

.pixel-7 {
    width: 45px;
    height: 45px;
    top: 60%;
    left: 3%;
    background: rgba(155, 77, 202, 0.3);
}

.pixel-8 {
    width: 55px;
    height: 55px;
    top: 55%;
    right: 2%;
    background: rgba(155, 77, 202, 0.25);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(45, 25, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(35, 20, 10, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    padding: 8px 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange-start);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: #fff;
    font-weight: 600;
}

.nav-links a.active::after {
    background: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-btn {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-main);
    padding: 10px;
    transition: color 0.3s ease;
}

.cart-btn:hover {
    color: var(--orange-start);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--orange-start);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn {
    background: white;
    color: var(--text-dark);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-logo {
    margin-bottom: 20px;
}

.main-logo {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    letter-spacing: 2px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: var(--text-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-discord {
    background: #5865F2;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* --- CATEGORIES SECTION --- */
.categories {
    padding: 40px 20px 80px;
    position: relative;
    z-index: 1;
}

.category-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    background: linear-gradient(135deg, 
        rgba(155, 77, 202, 0.6) 0%, 
        rgba(107, 45, 138, 0.8) 100%);
    border-radius: 20px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.category-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon img {
    transform: scale(1.1);
}

.category-icon i {
    font-size: 2.5rem;
    color: white;
}

.category-info h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.view-items-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: var(--purple-dark);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.category-card:hover .view-items-btn {
    background: white;
    transform: scale(1.05);
}

/* --- SERVER INFO SECTION --- */
.server-info {
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.info-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-box i {
    font-size: 3rem;
    color: var(--orange-start);
    margin-bottom: 15px;
}

.info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.ip-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ip-box:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--orange-start);
}

.ip-box span {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1.1rem;
}

/* --- FOOTER --- */
.footer {
    background: linear-gradient(180deg, transparent 0%, rgba(74, 31, 107, 0.8) 100%);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--orange-start);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .info-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(61, 40, 23, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 0;
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 20px;
        font-size: 1.1rem;
    }
    
    .nav-actions {
        display: none;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .category-card {
        flex-direction: column;
        text-align: center;
    }
    
    .category-info h3 {
        font-size: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- ABOUT PAGE STYLES --- */
.about-hero {
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 20px 60px;
    position: relative;
    z-index: 1;
}

.about-hero h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.about-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.about-section {
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-card h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--orange-start);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-card h2 i {
    font-size: 1.5rem;
}

.about-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-card ul {
    list-style: none;
    padding: 0;
}

.about-card ul li {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-card ul li i {
    color: var(--orange-start);
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--orange-start);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}
