/* Custom CSS for PottyLog Guide */

:root {
    --primary-color: #4A69FF;
    --success-color: #35D073;
    --warning-color: #FF9800;
    --info-color: #6E36CA;
    --danger-color: #FF5A73;
    --light-bg: #f8f9fa;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    
    /* Color RGB values for use in rgba() */
    --primary-color-rgb: 74, 105, 255;
    --success-color-rgb: 53, 208, 115;
    --warning-color-rgb: 255, 152, 0;
    --info-color-rgb: 110, 54, 202;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container-fluid {
    padding: 0;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" fill-opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-title .highlight {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.hero-features {
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-item i {
    color: #FFD700;
    font-size: 1.1rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero Button Styles */
.hero-section .btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 105, 255, 0.3);
}

.hero-section .btn-primary:hover {
    background: #3a5bff;
    border-color: #3a5bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 105, 255, 0.4);
    color: white;
}

.hero-section .btn-outline-primary {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-section .btn-outline-primary:hover {
    background: white;
    border-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.stats-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Guides Section */
.guides-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Category Filter */
.category-filter-modern {
    margin-bottom: 3rem;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.filter-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: #64748b;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
    border: 2px solid transparent;
}

.filter-tab:hover {
    background: rgba(var(--category-color-rgb, 74, 105, 255), 0.05);
    color: var(--category-color, var(--primary-color));
    transform: translateY(-2px);
    text-decoration: none;
}

.filter-tab.active {
    background: var(--category-color, var(--primary-color));
    color: white;
    border-color: var(--category-color, var(--primary-color));
    box-shadow: 0 8px 25px rgba(var(--category-color-rgb, 74, 105, 255), 0.3);
}

.filter-tab i {
    font-size: 1.5rem;
}

.filter-tab span {
    font-weight: 600;
    font-size: 0.9rem;
}

.tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: currentColor;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.filter-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.3);
}

.filter-tab:not(.active) .tab-count {
    background: #e2e8f0;
    color: #64748b;
}

.category-btn {
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    background: white;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: var(--category-color, var(--primary-color));
    border-color: var(--category-color, var(--primary-color));
}

.category-btn.active {
    background-color: var(--category-color, var(--primary-color));
    border-color: var(--category-color, var(--primary-color));
    color: white;
}

/* Modern Guide Cards */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.guide-card-modern {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guide-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #e2e8f0;
}

.card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.category-badge-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.category-badge-modern i {
    font-size: 1rem;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

.card-content {
    padding: 1.5rem;
}

.guide-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #1a202c;
}

.guide-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.guide-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.difficulty-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-count {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
}

.btn-primary-modern {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary-modern:hover {
    background: #3a5bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 105, 255, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary-modern:hover {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.category-badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.8rem;
}

.difficulty-beginner {
    background-color: var(--success-color);
    color: white;
}

.difficulty-intermediate {
    background-color: var(--warning-color);
    color: white;
}

.difficulty-advanced {
    background-color: var(--danger-color);
    color: white;
}

/* Guide Detail Styles */
.guide-detail-header {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

/* Steps Navigation */
.step-navigation {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.step-nav-btn {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1rem;
    background: white;
    color: #6c757d;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
}

.step-nav-btn:hover {
    border-color: var(--category-color, var(--primary-color));
    color: var(--category-color, var(--primary-color));
    transform: translateY(-2px);
}

.step-nav-btn.active {
    background-color: var(--category-color, var(--primary-color));
    border-color: var(--category-color, var(--primary-color));
    color: white;
}

.step-number {
    background: currentColor;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-nav-btn.active .step-number {
    background: white;
    color: var(--category-color, var(--primary-color));
}

.step-title {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

.step-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.step-indicator {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

.tips-section, .approach-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.tips-list, .approach-list, .pros-list, .cons-list {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.tips-list li, .approach-list li {
    margin-bottom: 0.5rem;
}

.pros-list li {
    color: var(--success-color) !important;
}

.cons-list li {
    color: var(--warning-color) !important;
}

/* Quiz Styles */
.quiz-header {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

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

.quiz-progress-text, .quiz-progress-percentage {
    font-weight: 600;
    color: var(--primary-color);
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Question Cards - Quiz specific */
.quiz-content .question-card {
    display: none;
}

.quiz-content .question-card.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.question-card .card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.question-text {
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.option-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-check {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-check:hover {
    border-color: var(--primary-color);
    background-color: rgba(74, 105, 255, 0.05);
}

.option-check input[type="radio"] {
    display: none;
}

.option-check input[type="radio"]:checked + label {
    color: var(--primary-color);
}

.option-item:has(input:checked) .option-check {
    border-color: var(--primary-color);
    background-color: rgba(74, 105, 255, 0.1);
}

.option-item.correct .option-check {
    border-color: var(--success-color);
    background-color: rgba(53, 208, 115, 0.1);
}

.option-item.incorrect .option-check {
    border-color: var(--danger-color);
    background-color: rgba(255, 90, 115, 0.1);
}

.option-letter {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.option-item:has(input:checked) .option-letter {
    background-color: var(--primary-color);
    color: white;
}

.option-item.correct .option-letter {
    background-color: var(--success-color);
    color: white;
}

.option-item.incorrect .option-letter {
    background-color: var(--danger-color);
    color: white;
}

.option-text {
    font-weight: 500;
}

.explanation-container {
    margin-top: 1rem;
}

/* Quiz Results */
.quiz-results {
    animation: fadeInUp 0.5s ease;
}

.result-stat {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.performance-level {
    padding: 2rem;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(53, 208, 115, 0.1), rgba(74, 105, 255, 0.1));
}

/* Section Cards */
.section-card .card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.section-card .card-title {
    color: var(--primary-color);
}

.pros-cons-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    padding: 5rem 0;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .stats-card {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .stats-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tab {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}
    
    .step-nav-btn {
        min-width: 150px;
        font-size: 0.8rem;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .btn-secondary-modern {
        flex: 1;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease;
}

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

/* Button Styles */
.btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Readiness Test Button */
.btn-light {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: white;
    border-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a5bff;
} 