/* Tips & Tricks Page Styles */

/* Hero Section — harmonized with the index hero (.hero-proposal) */
.tips-hero {
    position: relative;
    background: linear-gradient(135deg, #F3F0FB 0%, #EEF1FB 100%);
    color: #1E1B2E;
    margin-top: -90px;
    padding: 150px 0 70px;
    margin-bottom: 0;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tips-hero h1 {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #1E1B2E;
    margin-bottom: 1rem;
}

.tips-hero p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #6B6680;
    max-width: 560px;
    margin-bottom: 0;
}

.tips-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #6D4BEF;
    border: 1px solid #E7E0F8;
    border-radius: 999px;
    padding: 8px 16px 8px 13px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    box-shadow: 0 4px 18px -10px rgba(91, 63, 214, 0.35);
    margin-bottom: 1.5rem;
}

.tips-hero .hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6D4BEF;
    flex-shrink: 0;
}

/* Cards Section */
.tips-cards-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.tip-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.tip-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.tip-card:hover .tip-card-icon {
    transform: scale(1.1);
}

.tip-card-icon i {
    font-size: 2rem;
    color: white;
}

.tip-card-icon.getting-started {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.tip-card-icon.voice {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.tip-card-icon.writing {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.tip-card-icon.stress {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.tip-card-icon.privacy {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.tip-card-icon.video {
    background: linear-gradient(135deg, #b99cf4, #7bb5cf);
}

.tip-card h4 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.tip-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tip-card .card-link {
    color: var(--primary-color, #6366f1);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s ease;
}

.tip-card:hover .card-link {
    gap: 0.7rem;
}

/* Modal Styles */
.tips-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.tips-modal .modal-header {
    border-bottom: none;
    padding: 2rem 2rem 1rem;
}

.tips-modal .modal-header .modal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.tips-modal .modal-header .modal-icon i {
    font-size: 1.3rem;
    color: white;
}

.tips-modal .modal-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: #1e293b;
}

.tips-modal .modal-body {
    padding: 1rem 2rem 2rem;
}

.tips-modal .modal-footer {
    border-top: none;
    padding: 0 2rem 2rem;
}

/* Tip Steps */
.tip-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.tip-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b99cf4, #7bb5cf);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.tip-step-content h6 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.tip-step-content p {
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Tip Highlights */
.tip-highlight {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.tip-highlight i {
    color: var(--primary-color, #6366f1);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.tip-highlight p {
    margin-bottom: 0;
    color: #475569;
    line-height: 1.5;
}

/* Example prompts */
.example-prompt {
    background: #f1f5f9;
    border-left: 3px solid #b99cf4;
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 0.75rem;
    font-style: italic;
    color: #475569;
}

/* Video Container */
.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin-bottom: 1.5rem;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.video-placeholder p {
    opacity: 0.6;
    margin-bottom: 0;
}

/* CTA Section — harmonized with the index CTA (.cta-section) */
.tips-cta-section {
    background: linear-gradient(135deg, #bfd9e0 0%, #dad9f8 100%);
    padding: 80px 0;
    color: #1e293b;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tips-cta-section h2 {
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.tips-cta-section p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.tips-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: oklch(0.58 0.10 280);
    color: #ffffff;
    padding: 0.95rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(89, 70, 140, 0.08);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tips-cta-button:hover {
    transform: translateY(-1px);
    background: oklch(0.52 0.11 280);
    color: #ffffff;
    text-decoration: none;
}

/* Section title */
.tips-section-title {
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.tips-section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .tips-hero {
        padding: 110px 0 40px;
    }

    .tips-hero h1 {
        font-size: 2rem;
    }

    .tips-cards-section {
        padding: 2.5rem 0;
    }

    .tip-card {
        padding: 2rem 1.5rem;
    }

    .tip-card-icon {
        width: 65px;
        height: 65px;
    }

    .tip-card-icon i {
        font-size: 1.5rem;
    }

    .tips-modal .modal-header,
    .tips-modal .modal-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .tips-cta-section {
        padding: 3rem 0;
    }
}

/* Dark Mode */
.dark-mode .tips-hero {
    background: linear-gradient(135deg, oklch(0.22 0.02 290) 0%, oklch(0.20 0.015 240) 100%);
}

.dark-mode .tips-hero h1 {
    color: #f4f2fb;
}

.dark-mode .tips-hero p {
    color: #b8b3c9;
}

.dark-mode .tips-hero .hero-badge {
    background: rgba(255, 255, 255, 0.06);
    color: #c9bdf6;
    border-color: rgba(255, 255, 255, 0.12);
}

.dark-mode .tips-hero .hero-badge-dot {
    background: #b9a4ff;
}

.dark-mode .tips-cards-section {
    background: #222831;
}

.dark-mode .tip-card {
    background: #393e46;
    border-color: #555;
}

.dark-mode .tip-card h4 {
    color: #f8f9fa;
}

.dark-mode .tip-card p {
    color: #adb5bd;
}

.dark-mode .tip-card .card-link {
    color: #b99cf4;
}

.dark-mode .tips-section-title {
    color: #f8f9fa;
}

.dark-mode .tips-section-subtitle {
    color: #adb5bd;
}

.dark-mode .tips-modal .modal-content {
    background: #393e46;
}

.dark-mode .tips-modal .modal-title {
    color: #f8f9fa;
}

.dark-mode .tip-step-content h6 {
    color: #f8f9fa;
}

.dark-mode .tip-step-content p {
    color: #adb5bd;
}

.dark-mode .tip-highlight {
    background: linear-gradient(135deg, #2d3340, #222831);
}

.dark-mode .tip-highlight p {
    color: #ccc;
}

.dark-mode .example-prompt {
    background: #2d3340;
    color: #ccc;
}

.dark-mode .tips-cta-section {
    background: linear-gradient(135deg, #5b5869 0%, #5e6f71 100%);
}

.dark-mode .tips-cta-section h2,
.dark-mode .tips-cta-section p {
    color: #f8f9fa;
}

.dark-mode .tips-cta-button {
    background: oklch(0.65 0.12 280);
    color: #ffffff;
}

.dark-mode .tips-cta-button:hover {
    background: oklch(0.70 0.13 280);
}

.dark-mode .btn-close {
    filter: invert(1);
}
