/* style.css - Ronin Store Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800;900&family=Noto+Sans:wght@300;400;600;700&family=Shojumaru&display=swap');

:root {
    --bg-dark: #0a0a0c;
    --bg-panel: #141518;
    --bg-hover: #1e1f24;
    --blood-red: #c1272d;
    --gold: #d4af37;
    --text-main: #e2e2e2;
    --text-muted: #888;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Noto Sans', sans-serif;
    --font-display: 'Shojumaru', cursive;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Subtle noise texture */
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100" height="100" filter="url(%23noise)" opacity="0.03"/%3E%3C/svg%3E');
}

/* Particle Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--blood-red); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* --- Global Navigation --- */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.95);
    border-bottom: 2px solid var(--blood-red);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}
.logo:hover { transform: scale(1.05); }
.logo span { color: var(--blood-red); }

.search-bar {
    display: flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    width: 300px;
    transition: border-color 0.3s;
}
.search-bar:focus-within {
    border-color: var(--blood-red);
    box-shadow: 0 0 10px rgba(193, 39, 45, 0.3);
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 15px;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}

.search-bar button {
    background: var(--blood-red);
    border: none;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
.search-bar button:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-actions a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
}

.nav-actions a:hover {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Standard Buttons */
.btn-epic {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-epic:hover {
    background: var(--blood-red);
    border-color: var(--blood-red);
    color: white;
    box-shadow: 0 0 15px rgba(193, 39, 45, 0.6);
}

.btn-solid {
    background: var(--blood-red);
    border: none;
    color: white;
    padding: 12px 24px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn-solid:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* --- Main Store Container & Sidebar --- */
.store-container {
    display: flex;
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 40px;
    gap: 40px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar h3 {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.category-menu {
    list-style: none;
}
.category-menu li { margin-bottom: 10px; }
.category-menu a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(255,255,255,0.02);
    border-left: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 15px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}
.category-menu a:hover, .category-menu a.active {
    background: rgba(193, 39, 45, 0.1);
    color: var(--text-main);
    border-left: 3px solid var(--blood-red);
    padding-left: 20px;
}

.main-content {
    flex-grow: 1;
    width: 100%;
}

/* --- Shared Components --- */
.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--gold);
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 120%;
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg preserveAspectRatio="none" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 Q25,30 50,50 T100,50 L100,70 Q75,90 50,70 T0,70 Z" fill="%23c1272d"/></svg>') no-repeat left center;
    background-size: 100% 100%;
    z-index: -1;
    opacity: 0.8;
}

.brush-tag {
    display: inline-block;
    background: var(--blood-red);
    color: white;
    padding: 4px 12px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: bold;
    transform: skewX(-15deg);
    margin-bottom: 15px;
}
.brush-tag span { display: inline-block; transform: skewX(15deg); }

/* --- Footer --- */
footer {
    background: #050505;
    padding: 50px 40px;
    border-top: 2px solid #222;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: auto;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.footer-logo span { color: var(--blood-red); }

/* --- Forms & Glassmorphism --- */
.glass-panel {
    background: rgba(20, 21, 24, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    position: relative;
}
.glass-panel::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(45deg, var(--blood-red), transparent, var(--gold));
    z-index: -1;
    border-radius: 9px;
    opacity: 0.5;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 14px;
}
.form-group input {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid #333;
    padding: 12px;
    color: white;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--blood-red);
    box-shadow: 0 0 10px rgba(193,39,45,0.2);
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}
.product-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none; /* Make card clickable as anchor */
    color: inherit;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid var(--blood-red);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: scale(0.95);
    pointer-events: none;
    z-index: 2;
}
.product-card:hover {
    transform: translateY(-5px);
    background: var(--bg-hover);
}
.product-card:hover::before {
    opacity: 1;
    transform: scale(1);
}
.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}
.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}
.tag.soft { color: #00e5ff; border-color: rgba(0,229,255,0.4); }
.tag.hard { color: var(--gold); border-color: rgba(212,175,55,0.4); }
.tag.hardware { color: var(--blood-red); border-color: rgba(193,39,45,0.4); }

.product-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--text-main);
}
.platform-icons {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: bold;
}
.price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.price {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--gold);
    font-weight: bold;
}

@media (max-width: 900px) {
    .store-container { flex-direction: column; }
    .sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 10px; }
    .sidebar h3 { width: 100%; }
    .category-menu { display: flex; flex-wrap: wrap; gap: 10px; }
    .category-menu li { margin: 0; }
}
