/* Piggy Riches Megaways - Main Stylesheet */
/* Color Scheme: Purple (#6B21A8, #9333EA, #A855F7) + Gold (#FACC15, #EAB308, #CA8A04) */

:root {
    --purple-dark: #4C1D95;
    --purple-primary: #6B21A8;
    --purple-light: #9333EA;
    --purple-lighter: #A855F7;
    --gold-primary: #FACC15;
    --gold-dark: #EAB308;
    --gold-darker: #CA8A04;
    --white: #FFFFFF;
    --gray-light: #F3F4F6;
    --gray: #6B7280;
    --dark: #1F2937;
    --black: #000000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-primary) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--gold-primary);
}

.logo-text {
    color: var(--gold-primary);
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--gold-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Banner */
.hero {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-primary) 50%, var(--purple-light) 100%);
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/mansion-bg.webp') center/cover;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    color: var(--gold-primary);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-image {
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 4px solid var(--gold-primary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Live Win Ticker */
.win-ticker {
    background: linear-gradient(90deg, var(--gold-darker) 0%, var(--gold-primary) 50%, var(--gold-darker) 100%);
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 700;
    color: var(--purple-dark);
    font-size: 1.1rem;
    overflow: hidden;
}

.win-ticker span {
    animation: pulse 2s infinite;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 3rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--purple-dark);
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border: 3px solid var(--gold-primary);
}

.btn-secondary:hover {
    background: var(--gold-primary);
    color: var(--purple-dark);
}

.btn-pulse {
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Main Content */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    color: var(--purple-primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-dark));
    border-radius: 2px;
}

.section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
}

.section-content p {
    margin-bottom: 1.5rem;
}

/* Table of Contents */
.toc {
    background: linear-gradient(135deg, var(--gray-light) 0%, #E5E7EB 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 5px solid var(--gold-primary);
}

.toc-title {
    color: var(--purple-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.toc-list {
    list-style: none;
    columns: 2;
    column-gap: 2rem;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--purple-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    color: var(--gold-darker);
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-table th,
.info-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.info-table th {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-light) 100%);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.info-table tr:hover {
    background: var(--gray-light);
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--purple-primary);
}

/* Symbol Table */
.symbol-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.symbol-table th,
.symbol-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #E5E7EB;
}

.symbol-table th {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    color: var(--purple-dark);
    font-weight: 700;
}

.symbol-icon {
    font-size: 2rem;
}

/* Pros & Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros-box,
.cons-box {
    padding: 2rem;
    border-radius: 1rem;
}

.pros-box {
    background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
    border-left: 5px solid #22C55E;
}

.cons-box {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border-left: 5px solid #EF4444;
}

.pros-box h3,
.cons-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros-box h3 {
    color: #15803D;
}

.cons-box h3 {
    color: #B91C1C;
}

.pros-box ul,
.cons-box ul {
    list-style: none;
    padding-left: 0;
}

.pros-box li,
.cons-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.pros-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22C55E;
    font-weight: 700;
}

.cons-box li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #EF4444;
    font-weight: 700;
}

/* FAQ */
.faq {
    margin: 2rem 0;
}

.faq-item {
    background: var(--white);
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-light) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 1.5rem;
    background: var(--gray-light);
    color: var(--dark);
    line-height: 1.8;
}

/* Images */
.content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 1rem;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--gold-primary);
}

/* Lists */
.content-list {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-list li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.content-list ol {
    counter-reset: item;
}

.content-list ol li {
    counter-increment: item;
}

/* Steps */
.steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.steps li {
    counter-increment: step;
    padding: 1.5rem;
    padding-left: 4rem;
    margin-bottom: 1rem;
    background: var(--gray-light);
    border-radius: 1rem;
    position: relative;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--purple-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-primary) 100%);
    color: var(--white);
    padding: 3rem 1rem 1rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--gold-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold-primary);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact a {
    color: var(--gold-primary);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.responsible-gaming {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.responsible-gaming a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
}

.age-restriction {
    background: var(--gold-primary);
    color: var(--purple-dark);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Play Page */
.play-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-primary) 100%);
}

.play-title {
    color: var(--gold-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.play-message {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.play-loader {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(250, 204, 21, 0.2);
    border-top: 8px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .toc-list {
        columns: 1;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.highlight {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--purple-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 700;
}
