/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background: #5B3A8F;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #D4AF37;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: #D4AF37;
}

/* ==================== HERO SECTION ==================== */
.hero-full {
    background: linear-gradient(135deg, #6A1B9A 0%, #5B3A8F 50%, #4A2C6F 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px;
    padding: 2rem;
}

.hero-content-center {
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: bold;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== BUTTONS ==================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #D4AF37;
    color: #2c2c2c;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    background: #FFD700;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #D4AF37;
}

.btn-secondary:hover {
    background: #D4AF37;
    color: #2c2c2c;
    transform: translateY(-2px);
}

/* ==================== PAGE LAYOUT ==================== */
.page-content {
    margin-top: 60px;
    min-height: calc(100vh - 120px);
}

.section {
    padding: 80px 20px;
}

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

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #5B3A8F;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
}

/* ==================== COVER IMAGES ==================== */
.cover-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border: 4px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cover-image:hover {
    transform: translateY(-2px);
}

/* Theme-specific hover effects */
.cover-image.free:hover {
    border-color: #71c6ff;
    box-shadow: 0 12px 24px rgba(113, 198, 255, 0.3), 0 8px 16px rgba(0,0,0,0.2);
}

.cover-image.pro:hover {
    border-color: #5B3A8F;
    box-shadow: 0 12px 24px rgba(91, 58, 143, 0.3), 0 8px 16px rgba(0,0,0,0.2);
}

.cover-image.ultimate:hover {
    border-color: #D4AF37;
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.3), 0 8px 16px rgba(0,0,0,0.2);
}

.cover-image.database:hover {
    border-color: #fdafa2;
    box-shadow: 0 12px 24px rgba(253, 175, 162, 0.3), 0 8px 16px rgba(0,0,0,0.2);
}

.cover-image.walls:hover {
    border-color: #5B3A8F;
    box-shadow: 0 12px 24px rgba(91, 58, 143, 0.3), 0 8px 16px rgba(0,0,0,0.2);
}

.cover-image.fracture:hover {
    border-color: #ff6b35;
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.3), 0 8px 16px rgba(0,0,0,0.2);
}

/* Hero images (centered with backgrounds) */
.hero-image {
    display: block;
    border: 4px solid transparent;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.hero-image:hover {
    transform: translateY(-4px) scale(1.02);
}

.hero-image.ultimate:hover {
    border-color: #D4AF37;
    filter: drop-shadow(0 12px 24px rgba(212, 175, 55, 0.4)) drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.hero-image.database:hover {
    border-color: #fdafa2;
    filter: drop-shadow(0 12px 24px rgba(253, 175, 162, 0.4)) drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.hero-image.fracture:hover {
    border-color: #ff6b35;
    filter: drop-shadow(0 12px 24px rgba(255, 107, 53, 0.4)) drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.hero-image.dice:hover {
    border-color: #8B0000;
    filter: drop-shadow(0 12px 24px rgba(139, 0, 0, 0.4)) drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

/* ==================== CONTENT CARDS ==================== */
.content-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-card h2 {
    color: #5B3A8F;
    margin-bottom: 1rem;
}

.content-card h3 {
    color: #5B3A8F;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-card p {
    color: #555;
    line-height: 1.8;
}

.content-card ul {
    list-style: none;
    padding-left: 1rem;
}

.content-card li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.content-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-weight: bold;
}

.proof-image {
    margin: 1.5rem 0;
    text-align: center;
}

.proof-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
}

/* ==================== TABS ==================== */
.tabs {
    margin-top: 1rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: #f0f0f0;
    color: #5B3A8F;
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #e0e0e0;
}

.tab-btn.active {
    background: #5B3A8F;
    color: #D4AF37;
    border-color: #D4AF37;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ==================== GRIDS ==================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.rig-gallery-hero {
    margin: 2rem 0 1.5rem 0;
    display: flex;
    justify-content: center;
}

.rig-image-hero {
    max-width: 800px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.rig-image-hero:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(91, 58, 143, 0.3);
}

.rig-image-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.rig-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 0 0 2rem 0;
}

.rig-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.rig-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(91, 58, 143, 0.2);
}

.rig-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.specs-grid {
    margin-top: 2rem;
    display: grid;
    gap: 2rem;
}

.spec-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #D4AF37;
}

.spec-item h4 {
    color: #5B3A8F;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.specs-list {
    list-style: none;
    padding-left: 0;
}

.specs-list li {
    padding: 0.5rem 0;
    padding-left: 0;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
}

.specs-list li:before {
    content: none;
}

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

.specs-list strong {
    color: #5B3A8F;
    min-width: 100px;
    display: inline-block;
}

/* ==================== TOOL CARDS ==================== */
.tool-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(91, 58, 143, 0.2);
    border-color: #D4AF37;
}

.tool-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card h3 {
    color: #5B3A8F;
    margin-bottom: 1rem;
}

.tool-card p {
    color: #666;
    margin-bottom: 1rem;
}

.tool-image-placeholder {
    background: linear-gradient(135deg, #5B3A8F 0%, #4A2C6F 100%);
    height: 200px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.tool-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    color: #5B3A8F;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==================== GAME CARDS ==================== */
.game-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(91, 58, 143, 0.2);
    border-color: #D4AF37;
}

.game-card h3 {
    color: #5B3A8F;
    margin-bottom: 0.5rem;
}

.game-card p {
    color: #666;
    margin-top: 1rem;
}

.game-image-placeholder {
    background: linear-gradient(135deg, #6A1B9A 0%, #5B3A8F 100%);
    height: 200px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-badge.dev {
    background: #D4AF37;
    color: #2c2c2c;
}

.status-badge.proto {
    background: #5B3A8F;
    color: white;
}

.status-badge.published {
    background: #4CAF50;
    color: white;
}

/* ==================== ART CARDS ==================== */
.art-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.art-card:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(91, 58, 143, 0.2);
}

.art-image-placeholder {
    background: linear-gradient(135deg, #4A2C6F 0%, #6A1B9A 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.art-caption {
    padding: 1rem;
    text-align: center;
    color: #555;
    font-style: italic;
}

/* ==================== CONTACT PAGE ==================== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-item h3 {
    color: #5B3A8F;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    color: #5B3A8F;
}

.contact-item em {
    color: #999;
}

/* ==================== CONTACT FORM ==================== */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #5B3A8F;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #5B3A8F;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5B3A8F;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* ==================== FOOTER ==================== */
footer {
    background: #4A2C6F;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

footer a {
    color: #D4AF37;
    text-decoration: none;
}

footer a:hover {
    color: #FFD700;
}

footer p {
    margin: 0.25rem 0;
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #D4AF37;
    color: #2c2c2c;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #FFD700;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
