/* AeroPress Guide Specific Styles */

.guide-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--light-color);
}

.guide-header h1 {
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
}

.guide-header p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Progress Bar */
.guide-progress {
    margin-bottom: var(--spacing-xl);
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.progress-bar {
    height: 8px;
    background-color: var(--light-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 16.66%; /* Start at step 1 of 6 */
    transition: width 0.3s ease;
}

.step-counter {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

/* Brew Steps */
.brew-steps {
    margin-bottom: var(--spacing-xl);
}

.brew-step {
    display: none;
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.brew-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.step-number {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.brew-step h2 {
    margin-top: var(--spacing-sm);
    color: var(--dark-color);
    padding-left: 50px;
}

.step-content {
    margin-top: var(--spacing-md);
    padding-left: 50px;
}

.step-content ul {
    list-style: none;
    padding-left: 0;
}

.step-content li {
    padding: var(--spacing-xs) 0;
    padding-left: 1.5rem;
    position: relative;
}

.step-content li:before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    padding: 0 var(--spacing-sm);
}

.step-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-btn:hover:not(:disabled) {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.step-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Tips Section */
.tips-section {
    background: linear-gradient(135deg, var(--light-color) 0%, #fff8f0 100%);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xl);
}

.tips-section h2 {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: var(--spacing-lg);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.tip-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-card h3:before {
    content: "💡";
    font-size: 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .guide-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .brew-step {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        top: -15px;
        left: -15px;
        font-size: 1.25rem;
    }
    
    .brew-step h2,
    .step-content {
        padding-left: 40px;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .step-btn {
        justify-content: center;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .brew-step {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .tips-section {
        padding: var(--spacing-md);
    }
}

/* Print Styles */
@media print {
    .guide-progress,
    .step-navigation,
    .tips-section {
        display: none;
    }
    
    .brew-step {
        display: block !important;
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .step-number {
        background-color: white;
        color: black;
        border: 2px solid black;
    }
}