/* Pokemon TCG Beginner's Guide Styles */

.guide-container {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Header */
.guide-header {
    background: linear-gradient(135deg, var(--pokemon-purple) 0%, var(--pokemon-purple-light) 100%);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.guide-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.back-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: white;
}

.guide-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.guide-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Table of Contents */
.guide-toc {
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(20, 20, 20, 0.95);
}

.guide-toc h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.guide-toc ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.guide-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.guide-toc a:hover {
    color: var(--text-primary);
    border-color: var(--pokemon-purple);
    background: rgba(147, 51, 234, 0.1);
}

/* Content Sections */
.guide-content {
    padding: 3rem 0;
}

.guide-section {
    margin-bottom: 4rem;
    scroll-margin-top: 120px;
}

.guide-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guide-section h2::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--pokemon-purple) 0%, transparent 100%);
}

.guide-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.guide-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Info Boxes */
.info-box,
.warning-box {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.info-box {
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid var(--pokemon-purple);
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
}

.info-box h3,
.warning-box h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Card Type Grid */
.card-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card-type {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.card-type h3 {
    font-size: 1.25rem;
    margin-top: 0;
    color: var(--pokemon-purple);
}

/* Rarity Table */
.rarity-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 2rem 0;
}

.rarity-row {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.rarity-row:last-child {
    border-bottom: none;
}

.rarity-symbol {
    font-size: 2rem;
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.rarity-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
}

.rarity-info p {
    margin: 0;
    font-size: 0.875rem;
}

/* Retailer Grid */
.retailer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.retailer-category {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.retailer-category h3 {
    font-size: 1.25rem;
    margin-top: 0;
    color: var(--pokemon-purple);
}

.retailer-category ul {
    margin: 0;
    padding-left: 1.25rem;
}

.retailer-category li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Supplies Grid */
.supplies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.supply-item {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
}

.supply-item h4 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.supply-item p {
    margin: 0;
    font-size: 0.875rem;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.comparison-item h3 {
    margin-top: 0;
    color: var(--pokemon-purple);
}

/* Terms List */
.terms-list {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.terms-list dt {
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1rem;
}

.terms-list dt:first-child {
    margin-top: 0;
}

.terms-list dd {
    margin: 0.25rem 0 0 0;
    color: var(--text-secondary);
    padding-left: 1rem;
}

/* Checklist */
.checklist {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    counter-reset: checklist-counter;
}

.checklist li {
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
    counter-increment: checklist-counter;
    color: var(--text-secondary);
}

.checklist li::before {
    content: counter(checklist-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--pokemon-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.resource {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.resource h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--pokemon-purple);
}

.resource ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource li {
    margin-bottom: 0.75rem;
}

.resource a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.resource a:hover {
    color: var(--pokemon-purple);
}

.resource a::after {
    content: '↗';
    font-size: 0.75rem;
}

/* Quick Start Section */
.quick-start {
    background: rgba(147, 51, 234, 0.05);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 2px solid var(--pokemon-purple);
    margin-top: 3rem;
}

/* Footer */
.guide-footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.guide-footer p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.guide-footer a {
    color: var(--pokemon-purple);
    text-decoration: none;
}

.guide-footer a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.tip {
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid var(--success);
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .guide-title {
        font-size: 2rem;
    }
    
    .guide-subtitle {
        font-size: 1rem;
    }
    
    .guide-toc {
        position: static;
        padding: 1.5rem 0;
    }
    
    .guide-toc ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .guide-section {
        scroll-margin-top: 20px;
    }
    
    .guide-section h2 {
        font-size: 1.5rem;
    }
    
    .card-type-grid,
    .retailer-grid,
    .comparison-grid,
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checklist {
        padding: 1.5rem;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .guide-header {
        background: linear-gradient(135deg, #5a2968 0%, #7e3a8c 100%);
    }
}

/* Print Styles */
@media print {
    .guide-toc,
    .back-link {
        display: none;
    }
    
    .guide-section {
        page-break-inside: avoid;
    }
    
    .guide-header {
        background: none;
        color: black;
    }
    
    .guide-title {
        color: black;
        text-shadow: none;
    }
}