/* BibleOps Premium Styles */

:root {
    --primary-color: #1a2332;
    --secondary-color: #2c5282;
    --accent-color: #48bb78;
    --danger-color: #fc8181;
    --text-dark: #1a2332;
    --text-gray: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #cbd5e0;
    --premium-gold: #f6ad55;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', Georgia, serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Premium Container */
.premium-container {
    min-height: 100vh;
}

/* Header */
.premium-header {
    background: linear-gradient(135deg, #1a2332 0%, #2c5282 100%);
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premium-header .logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.premium-header h1 {
    font-size: 1.8rem;
    font-weight: 900;
}

.premium-badge {
    background: var(--premium-gold);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.premium-badge-small {
    background: var(--premium-gold);
    color: var(--text-dark);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.premium-header nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.premium-header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.premium-header nav a:hover {
    opacity: 0.8;
}

.login-link {
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 6px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* Hero Pricing Grid */
.hero-pricing {
    max-width: 1000px;
    margin: 0 auto 20px;
}

.hero-pricing .pricing-card {
    padding: 30px 25px;
}

.hero-pricing .pricing-card ul {
    text-align: left;
    font-size: 0.95rem;
}

.hero-pricing .pricing-card ul li {
    padding: 6px 0;
}

.pricing-card-hero {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.price {
    margin-bottom: 30px;
}

.price .amount {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.price .period {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.features li:last-child {
    border-bottom: none;
}

.trial-note {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 15px;
}

/* Buttons */
.btn-primary {
    background: var(--secondary-color);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #1a365d;
}

.btn-primary:disabled {
    background: var(--text-gray);
    cursor: not-allowed;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-small {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* What You Get Section */
.what-you-get {
    padding: 80px 20px;
    background: white;
}

.what-you-get h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.components-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.component-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.component-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.component-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.component-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Pricing Section */
.pricing-details {
    padding: 80px 20px;
    background: var(--bg-light);
}

.pricing-details h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.pricing-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.savings {
    text-align: center;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.pricing-card ul {
    list-style: none;
    margin: 30px 0;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-light);
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

/* How It Works */
.how-it-works {
    padding: 80px 20px;
    background: white;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.steps {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-gray);
}

/* FAQ */
.faq {
    padding: 80px 20px;
    background: var(--bg-light);
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.faq-item p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* CTA Section */
.cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, #1a2332 0%, #2c5282 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
}

/* Footer */
.premium-footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 40px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-section p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
    padding: 20px;
}

.auth-box {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header svg {
    margin: 0 auto 15px;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-gray);
}

.auth-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: normal;
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.error-message {
    background: #fff5f5;
    color: var(--danger-color);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid var(--danger-color);
}

.success-message {
    background: #f0fff4;
    color: var(--accent-color);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
}

.auth-footer p {
    margin: 10px 0;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.trial-info {
    margin-top: 40px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 8px;
}

.trial-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.trial-info ol {
    margin-left: 20px;
    line-height: 1.8;
}

/* Dashboard */
.dashboard-container {
    min-height: 100vh;
    background: var(--bg-light);
}

.dashboard-nav {
    background: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 1.3rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-content section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dashboard-content h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.generate-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
}

.curriculum-form {
    max-width: 700px;
    margin: 0 auto;
}

/* Submit button styling for dashboard */
.curriculum-form .btn-primary.btn-large {
    width: 100%;
    margin-top: 20px;
}

.form-note {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.history-list {
    display: grid;
    gap: 15px;
}

.history-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.history-info p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.setting-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
}

.setting-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.setting-card p {
    margin-bottom: 15px;
    color: var(--text-gray);
}

.loading {
    text-align: center;
    color: var(--text-gray);
    padding: 40px;
}

/* Upgrade Banner */
.upgrade-banner {
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px 24px;
    color: white;
}

.upgrade-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.upgrade-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.upgrade-text {
    flex: 1;
}

.upgrade-text h3 {
    font-size: 1.2rem;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.upgrade-text p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.upgrade-banner .btn-primary {
    background: white;
    color: #667eea;
    flex-shrink: 0;
}

.upgrade-banner .btn-primary:hover {
    background: #f0f0f0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-gray);
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
}

.overage-info {
    text-align: center;
    margin-bottom: 24px;
}

.overage-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.overage-info p {
    margin: 8px 0;
    color: var(--text-gray);
}

.overage-details {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
}

.overage-line {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.overage-line span:last-child {
    font-weight: 700;
    color: var(--secondary-color);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

/* Status card colors */
.stat-card.status-card .stat-value {
    color: var(--accent-color);
}

.stat-card.status-card.inactive .stat-value {
    color: var(--danger-color);
}

.stat-card.status-card.free .stat-value {
    color: var(--premium-gold);
}

/* Checkbox Grid for Optional Components */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.checkbox-label:hover {
    border-color: var(--secondary-color);
    background: var(--bg-light);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--secondary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label:has(input:checked) {
    border-color: var(--secondary-color);
    background: rgba(44, 82, 130, 0.05);
}

.checkbox-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.checkbox-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.checkbox-text {
    flex: 1;
}

.checkbox-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.checkbox-text small {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.checkbox-note {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
}

/* Form Row for two-column layouts */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Form Section Styling */
.form-section {
    margin-bottom: 30px;
    padding: 24px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.form-section:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.section-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.section-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.section-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-style: italic;
}

/* Radio Labels */
.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.radio-label:hover {
    border-color: var(--secondary-color);
    background: var(--bg-light);
}

.radio-label:has(input:checked) {
    border-color: var(--secondary-color);
    background: rgba(44, 82, 130, 0.05);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--secondary-color);
    flex-shrink: 0;
}

.radio-content {
    flex: 1;
}

.radio-content strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.radio-content small {
    display: block;
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* Textarea styling */
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .components-grid {
        grid-template-columns: 1fr;
    }

    .premium-header {
        flex-direction: column;
        gap: 20px;
    }

    .auth-box {
        padding: 30px 20px;
    }

    .dashboard-nav {
        flex-direction: column;
        gap: 15px;
    }
}
