/* ===================================
   OPENING LINES - DEDICATED STYLES
   All classes prefixed with ol- to avoid conflicts
   =================================== */

/* --- Header --- */
.ol-copy-btn,
.ol-worked-btn {
    outline: none !important;
    transition: all 0.2s ease;
}

.ol-copy-btn:focus,
.ol-worked-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.ol-worked-btn.active {
    background: #00D9A3;
    color: #000;
}

.ol-header {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.ol-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ol-back-btn {
    background: transparent;
    border: 2px solid #8B5CF6;
    color: #8B5CF6;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-body);
}

.ol-back-btn:hover {
    background: #8B5CF6;
    color: white;
    transform: translateX(-4px);
}

.ol-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-display);
    cursor: pointer;
}

.ol-header-stats {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 600;
}

/* --- Main --- */
.ol-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- Hero --- */
.ol-hero {
    text-align: center;
    margin-bottom: 60px;
    animation: slideInUp 0.6s ease-out;
}

.ol-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ol-hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.ol-success-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.ol-stat-pill {
    background: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border: 1px solid var(--color-border);
}

.ol-stat-icon {
    font-size: 1.2rem;
}

.ol-stat-text {
    color: var(--color-text);
}

/* --- Upload Section --- */
.ol-upload-section {
    margin-bottom: 60px;
}

.ol-upload-container {
    background: white;
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.ol-upload-container h2 {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 8px;
}

.ol-upload-hint {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* --- Input Toggle --- */
.ol-input-toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    background: rgba(139, 92, 246, 0.05);
    padding: 6px;
    border-radius: var(--radius-full);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.ol-toggle-btn {
    background: transparent;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.ol-toggle-btn:hover {
    color: var(--color-text);
}

.ol-toggle-btn.active {
    background: white;
    color: #8B5CF6;
    box-shadow: var(--shadow-sm);
}

/* --- Text Input Zone --- */
.ol-text-zone {
    width: 100%;
}

.ol-text-input {
    width: 100%;
    min-height: 200px;
    padding: 24px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.ol-text-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    background: white;
}

.ol-drop-zone {
    border: 3px dashed rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    background: rgba(139, 92, 246, 0.02);
}

.ol-drop-zone:hover,
.ol-drop-zone.drag-over {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.05);
    transform: scale(1.01);
}

.ol-drop-zone-content {
    pointer-events: none;
}

.ol-upload-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.ol-drop-zone h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.ol-drop-zone p {
    color: var(--color-text-light);
    margin: 8px 0;
}

.ol-browse-btn {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    margin: 16px 0;
    pointer-events: all;
    font-family: var(--font-body);
}

.ol-browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.ol-file-types {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 12px;
}

/* --- Preview --- */
.ol-preview-container {
    margin-top: 32px;
}

.ol-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ol-preview-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.ol-change-btn {
    background: transparent;
    border: 2px solid var(--color-border);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-body);
}

.ol-change-btn:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.ol-preview-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.ol-preview-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Generate Actions --- */
.ol-generate-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.ol-generate-btn {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    border: none;
    padding: 18px 48px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    font-family: var(--font-body);
}

.ol-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.ol-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --- Loading Section --- */
.ol-loading-section {
    text-align: center;
    padding: 80px 20px;
}

.ol-loading-container {
    max-width: 500px;
    margin: 0 auto;
}

.ol-loading-spinner {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(139, 92, 246, 0.15);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: ol-spin 1s linear infinite;
    margin: 0 auto 28px;
}

@keyframes ol-spin {
    to {
        transform: rotate(360deg);
    }
}

.ol-loading-section h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-text);
    font-family: var(--font-display);
}

.ol-loading-tip {
    color: var(--color-text-light);
    font-style: italic;
    transition: opacity 0.3s ease;
}

/* --- Results Section --- */
.ol-results-section {
    animation: ol-slideInUp 0.6s ease-out;
}

@keyframes ol-slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.ol-results-header {
    text-align: center;
    margin-bottom: 48px;
}

.ol-results-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.ol-results-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Openers Grid --- */
.ol-openers-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 60px;
}

.ol-opener-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.ol-opener-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    transition: width var(--transition-base);
}

.ol-opener-card.funny::before {
    background: #FFB84D;
}

.ol-opener-card.thoughtful::before {
    background: #6C5CE7;
}

.ol-opener-card.flirty::before {
    background: #FF6B6B;
}

.ol-opener-card.bold::before {
    background: #00D9A3;
}

.ol-opener-card.creative::before {
    background: #EC4899;
}

.ol-opener-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.ol-opener-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.ol-opener-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ol-style-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.ol-style-badge.funny {
    background: rgba(255, 184, 77, 0.2);
    color: #d4940a;
}

.ol-style-badge.thoughtful {
    background: rgba(108, 92, 231, 0.2);
    color: #6C5CE7;
}

.ol-style-badge.flirty {
    background: rgba(255, 107, 107, 0.2);
    color: #e04545;
}

.ol-style-badge.bold {
    background: rgba(0, 217, 163, 0.2);
    color: #00a87e;
}

.ol-style-badge.creative {
    background: rgba(236, 72, 153, 0.2);
    color: #d63d8b;
}

.ol-success-rate {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.ol-opener-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 16px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-md);
    border-left: 4px solid currentColor;
}

.ol-opener-card.funny .ol-opener-text {
    border-color: #FFB84D;
}

.ol-opener-card.thoughtful .ol-opener-text {
    border-color: #6C5CE7;
}

.ol-opener-card.flirty .ol-opener-text {
    border-color: #FF6B6B;
}

.ol-opener-card.bold .ol-opener-text {
    border-color: #00D9A3;
}

.ol-opener-card.creative .ol-opener-text {
    border-color: #EC4899;
}

.ol-opener-explanation {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-md);
    line-height: 1.6;
}

.ol-opener-explanation strong {
    color: var(--color-text);
}

.ol-opener-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ol-copy-btn {
    flex: 1;
    min-width: 150px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-body);
}

.ol-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.ol-copy-btn.copied {
    background: var(--color-accent);
}

.ol-worked-btn {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    font-family: var(--font-body);
}

.ol-worked-btn:hover {
    background: var(--color-accent);
    color: white;
}

.ol-worked-btn.active {
    background: var(--color-accent);
    color: white;
    pointer-events: none;
}

/* --- Tracking Section --- */
.ol-tracking-section {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    margin-bottom: 40px;
}

.ol-tracking-section h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.ol-tracking-subtitle {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.ol-tracking-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.ol-tracking-stat {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    padding: 20px 32px;
    border-radius: var(--radius-md);
    min-width: 200px;
}

.ol-tracking-stat-number {
    font-size: 2rem;
    font-weight: 900;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ol-tracking-stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 600;
    margin-top: 4px;
}

/* --- Generate More --- */
.ol-generate-more {
    text-align: center;
    margin-bottom: 60px;
}

.ol-generate-more-btn {
    background: transparent;
    border: 2px solid #8B5CF6;
    color: #8B5CF6;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-body);
}

.ol-generate-more-btn:hover {
    background: #8B5CF6;
    color: white;
    transform: translateY(-2px);
}

/* --- Examples Section --- */
.ol-examples-section {
    margin-bottom: 60px;
}

.ol-examples-section h2 {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 40px;
}

.ol-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.ol-example-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--color-border);
    transition: all var(--transition-base);
}

.ol-example-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ol-example-profile {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-border);
}

.ol-example-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.ol-example-profile p,
.ol-example-opener p {
    color: var(--color-text);
    line-height: 1.6;
    font-style: italic;
}

.ol-example-opener {
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid #8B5CF6;
}

.ol-example-opener p {
    font-weight: 500;
}

.ol-result-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.ol-result-badge.ol-success {
    background: rgba(0, 217, 163, 0.2);
    color: var(--color-accent);
}

/* --- How It Works --- */
.ol-how-it-works {
    margin-bottom: 60px;
}

.ol-how-it-works h2 {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 40px;
}

.ol-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.ol-step-card {
    background: white;
    padding: 40px 24px 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    transition: all var(--transition-base);
}

.ol-step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.ol-step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    font-family: var(--font-mono);
}

.ol-step-icon {
    font-size: 3rem;
    margin: 24px 0 16px;
}

.ol-step-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.ol-step-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Tips Section --- */
.ol-tips-section {
    background: white;
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
}

.ol-tips-section h2 {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 40px;
}

.ol-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.ol-tip-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04), rgba(236, 72, 153, 0.04));
    padding: 24px;
    border-radius: var(--radius-md);
    border-left: 4px solid #8B5CF6;
    transition: all var(--transition-base);
}

.ol-tip-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.ol-tip-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.ol-tip-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

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

/* --- FAQ Section --- */
.ol-faq-section {
    margin-bottom: 60px;
}

.ol-faq-section h2 {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 40px;
}

.ol-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ol-faq-item {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.ol-faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ol-faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #8B5CF6;
}

.ol-faq-item p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Footer --- */
.ol-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.ol-footer a {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 600;
}

.ol-footer a:hover {
    text-decoration: underline;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .ol-header-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .ol-header-stats {
        display: none;
    }

    .ol-hero-title {
        font-size: 2rem;
    }

    .ol-success-stats {
        flex-direction: column;
    }

    .ol-stat-pill {
        width: 100%;
        justify-content: center;
    }

    .ol-upload-container {
        padding: 24px 16px;
    }

    .ol-drop-zone {
        padding: 40px 20px;
    }

    .ol-opener-card {
        padding: 24px 16px;
    }

    .ol-opener-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ol-opener-actions {
        flex-direction: column;
    }

    .ol-copy-btn,
    .ol-worked-btn {
        width: 100%;
    }

    .ol-tracking-stats {
        flex-direction: column;
    }

    .ol-tracking-stat {
        width: 100%;
    }

    .ol-tips-section {
        padding: 40px 20px;
    }

    .ol-results-header h2 {
        font-size: 1.8rem;
    }

    .ol-steps-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .ol-steps-grid {
        grid-template-columns: 1fr;
    }
}