/* PREPARATION PAGE COMPONENTS */

/* Preparation hero section */
.preparation-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.preparation-hero::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 100 100"><defs><pattern id="prep" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><path d="M12.5,5 L20,12.5 L12.5,20 L5,12.5 Z" fill="rgba(255,255,255,0.1)" stroke="rgba(255,255,255,0.05)" stroke-width="1"/><circle cx="12.5" cy="12.5" r="2" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23prep)"/></svg>');
}

.preparation-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.preparation-hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.preparation-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.benefit-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.benefit-text strong {
    color: white;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.benefit-text span {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Meeting types preparation */
.meeting-types-prep {
    padding: 5rem 0;
    background: #f8fafc;
}

.meeting-types-prep h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.prep-type-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0 2rem 0;
    flex-wrap: wrap;
}

.prep-tab {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #64748b;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prep-tab:hover,
.prep-tab.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.prep-content {
    position: relative;
}

.prep-type-content {
    display: none;
    animation: fadeInSlide 0.5s ease forwards;
}

.prep-type-content.active {
    display: block;
}

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

.prep-header {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.prep-header h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.prep-header p {
    color: #64748b;
    line-height: 1.6;
}

.prep-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.prep-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.prep-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.section-header {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.section-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.section-header h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
}

.section-content {
    padding: 2rem;
}

/* Checklists */
.checklist {
    display: grid;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    background: #f8fafc;
}

.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.1rem;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.checklist-item label {
    flex: 1;
    cursor: pointer;
    color: #374151;
    line-height: 1.4;
    margin: 0;
}

.checklist-item.optional label {
    color: #64748b;
}

.checklist-item.optional label em {
    color: #94a3b8;
    font-size: 0.9rem;
}

.checklist-item.completed {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
}

.checklist-item.completed label {
    text-decoration: line-through;
    color: #10b981;
}

/* Preparation notes */
.preparation-notes {
    display: grid;
    gap: 1rem;
}

.note-item {
    background: #f8fafc;
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.note-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.note-item span {
    color: #64748b;
    line-height: 1.5;
}

/* Universal checklist */
.universal-checklist {
    padding: 5rem 0;
}

.universal-checklist h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.checklist-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.checklist-category {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 2rem;
    transition: all 0.3s ease;
}

.checklist-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.checklist-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tips section */
.preparation-tips {
    padding: 5rem 0;
    background: #f8fafc;
}

.preparation-tips h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.tip-card.featured {
    background: linear-gradient(135deg, var(--accent-color), #0369a1);
    color: white;
    position: relative;
    overflow: hidden;
}

.tip-card.featured::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s linear infinite;
}

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

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.tip-card.featured .tip-icon {
    color: white;
}

.tip-card h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.tip-card.featured h4 {
    color: white;
}

.tip-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.tip-card li {
    color: #374151;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 1.5rem;
}

.tip-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.tip-card li:last-child {
    border-bottom: none;
}

.tip-card.featured li {
    color: rgba(255,255,255,0.9);
    border-bottom-color: rgba(255,255,255,0.2);
}

.tip-card.featured li:before {
    color: white;
}

.featured-tip {
    position: relative;
    z-index: 1;
}

.featured-tip p:first-child {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.featured-tip p:last-child {
    opacity: 0.9;
    line-height: 1.6;
}

/* Quick actions */
.quick-actions {
    padding: 5rem 0;
}

.quick-actions h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.action-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.action-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.action-card p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.action-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

/* Examples section */
.preparation-examples {
    padding: 5rem 0;
    background: #f8fafc;
}

.preparation-examples h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.examples-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0 2rem 0;
    flex-wrap: wrap;
}

.example-tab {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
}

.example-tab:hover,
.example-tab.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.examples-content {
    position: relative;
}

.example-content {
    display: none;
}

.example-content.active {
    display: block;
    animation: fadeInSlide 0.5s ease forwards;
}

.example-header {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.example-header h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.example-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #e2e8f0;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.example-scenario {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.scenario-info {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.scenario-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.scenario-info p {
    color: #64748b;
    line-height: 1.6;
}

.preparation-example {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.prep-column {
    padding: 2rem;
}

.prep-column:first-child {
    border-right: 1px solid #e5e7eb;
}

.prep-column h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.example-list {
    list-style: none;
    padding: 0;
}

.example-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 1.5rem;
    color: #374151;
}

.example-list li:last-child {
    border-bottom: none;
}

.example-list.success li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.example-list.result li:before {
    content: '🎯';
    position: absolute;
    left: 0;
}

/* Progress tracking */
.progress-tracker {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding: 1rem;
    z-index: 100;
    min-width: 200px;
    transition: all 0.3s ease;
}

.progress-tracker.hidden {
    transform: translateY(-50%) translateX(100%);
    opacity: 0;
}

.progress-header {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.progress-bar {
    background: #e5e7eb;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent-color), #10b981);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-stats {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

/* Responsive design */
@media (max-width: 968px) {
    .prep-sections-grid {
        grid-template-columns: 1fr;
    }
    
    .checklist-categories {
        grid-template-columns: 1fr;
    }
    
    .preparation-example {
        grid-template-columns: 1fr;
    }
    
    .prep-column:first-child {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .progress-tracker {
        position: static;
        transform: none;
        margin: 2rem auto;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .preparation-hero h1 {
        font-size: 2rem;
    }
    
    .preparation-benefits {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .prep-type-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .prep-tab {
        width: 100%;
        max-width: 300px;
    }
    
    .examples-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .example-tab {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .preparation-hero {
        padding: 3rem 0;
    }
    
    .preparation-hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .prep-header,
    .prep-section,
    .checklist-category,
    .tip-card,
    .action-card {
        padding: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .examples-tabs {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .preparation-hero,
    .hero-actions,
    .prep-type-tabs,
    .examples-tabs,
    .action-btn,
    .progress-tracker {
        display: none;
    }
    
    .prep-type-content {
        display: block !important;
        page-break-before: always;
    }
    
    .prep-type-content:first-child {
        page-break-before: avoid;
    }
    
    .prep-section,
    .checklist-category,
    .example-content {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .checklist-item input[type="checkbox"] {
        -webkit-appearance: checkbox;
        appearance: checkbox;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .prep-type-content,
    .example-content,
    .benefit-item,
    .prep-section,
    .checklist-item,
    .tip-card,
    .action-card {
        transition: none;
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .prep-section,
    .checklist-category,
    .tip-card,
    .action-card,
    .example-scenario {
        border: 2px solid #000;
    }
    
    .benefit-item {
        border: 1px solid rgba(255,255,255,0.8);
    }
    
    .checklist-item:hover {
        background: #f0f0f0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .meeting-types-prep,
    .quick-actions,
    .preparation-examples {
        background: #1e293b;
    }
    
    .prep-section,
    .checklist-category,
    .tip-card,
    .action-card,
    .example-scenario,
    .prep-header {
        background: #334155;
        color: #e2e8f0;
    }
    
    .section-header {
        background: linear-gradient(135deg, #475569, #64748b);
    }
    
    .checklist-item:hover {
        background: #475569;
    }
    
    .note-item {
        background: #475569;
    }
}

/* Loading animations */
.prep-section.loading {
    position: relative;
    pointer-events: none;
}

.prep-section.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

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

/* Completion indicators */
.section-complete {
    position: relative;
}

.section-complete::before {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    animation: checkmarkAppear 0.5s ease;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating action button */
.fab-progress {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.fab-progress:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.4);
}

.fab-progress.hidden {
    transform: translateY(100px);
    opacity: 0;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}
