/* PartyTools LP Common Styles */

/* Base & Utility */
:root {
    --lp-primary: #4f46e5;
    --lp-primary-hover: #4338ca;
    --lp-secondary: #ec4899;
    --lp-accent: #f59e0b;
    
    /* Light mode glass */
    --lp-glass-bg: rgba(255, 255, 255, 0.7);
    --lp-glass-border: rgba(255, 255, 255, 0.3);
    
    /* Target Section Colors (Light) */
    --bg-party: #fff5f7;
    --bg-event: #f0fdf4;
    --bg-tournament: #f8fafc;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark mode glass */
        --lp-glass-bg: rgba(30, 41, 59, 0.7);
        --lp-glass-border: rgba(255, 255, 255, 0.1);
        
        /* Target Section Colors (Dark - more subtle) */
        --bg-party: #2d161d;
        --bg-event: #062016;
        --bg-tournament: #0f172a;
    }
}

.lp-section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .lp-section {
        padding: 60px 0;
    }
}

/* Headings & Text */
h1, h2, h3, h4 {
    color: var(--text-main);
    margin-bottom: 1rem;
}

.lp-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
}

/* Glassmorphism */
.glass-card {
    background: var(--lp-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--lp-glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
}

/* Hero Section */
.lp-hero {
    position: relative;
    padding: 120px 0 80px;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.15), transparent),
                radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.15), transparent);
    overflow: hidden;
}

.lp-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--lp-primary); /* Fallback */
}

.lp-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

@media (max-width: 768px) {
    .lp-hero h1 { font-size: 2.5rem; }
    .lp-hero p { font-size: 1.1rem; }
}

/* CTA Buttons */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.lp-btn-primary {
    background-color: var(--lp-primary);
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-hover));
    color: white !important;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.lp-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.5);
    background-color: var(--lp-primary-hover);
}

.lp-btn-secondary {
    background: var(--card-bg);
    color: var(--lp-primary) !important;
    border: 2px solid var(--lp-primary);
}

.lp-btn-secondary:hover {
    background: var(--lp-primary);
    color: white;
}

/* Feature Cards */
.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.lp-feature-card {
    padding: 40px;
    transition: all 0.3s ease;
    height: 100%;
}

.lp-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.lp-feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
}

/* Quick Start Tool List (Index only) */
.quick-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.quick-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s;
}

.quick-tool-card:hover {
    border-color: var(--lp-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.quick-tool-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.quick-tool-name {
    font-size: 0.9rem;
    font-weight: 700;
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Specific Target Section Colors - Use Variables for Dark Mode Support */
.section-party { background-color: var(--bg-party); border-left: 8px solid var(--lp-secondary); }
.section-event { background-color: var(--bg-event); border-left: 8px solid #10b981; }
.section-tournament { background-color: var(--bg-tournament); border-left: 8px solid var(--lp-primary); }

/* Article Card Styles */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.article-card {
    display: block;
    text-decoration: none;
    padding: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--lp-primary);
    box-shadow: var(--shadow-lg);
}

.card-label {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-muted);
    color: var(--lp-primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}
