/* Spotlight Coach - Professional Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --border-color: #ddd;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-small, .btn-large {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #ccc;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Share Buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.share-btn-email {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.share-btn-email:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.share-btn-whatsapp {
    background: #25D366;
    color: white;
}

.share-btn-whatsapp:hover {
    background: #20ba5a;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-box {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
}

.auth-box h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #7f8c8d;
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    color: #7f8c8d;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: white;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Features */
.features {
    margin: 3rem 0;
}

.features h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

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

.feature {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Pricing */
.pricing {
    margin: 4rem 0;
    text-align: center;
}

.price-card {
    max-width: 400px;
    margin: 2rem auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.price {
    font-size: 3rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.price span {
    font-size: 1.5rem;
    color: #7f8c8d;
}

.price-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.price-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.subscription-prompt {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-buttons {
    margin-bottom: 2rem;
}

.reports-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.report-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.report-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.report-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.report-actions {
    display: flex;
    gap: 0.5rem;
}

.no-reports {
    text-align: center;
    color: #7f8c8d;
    padding: 2rem;
}

/* Analyse Form */
.analyse-page {
    max-width: 800px;
    margin: 0 auto;
}

.subtitle {
    color: #7f8c8d;
    margin-bottom: 2rem;
    text-align: center;
}

.analyse-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group small {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.info-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Report Page */
.report-page .report-header {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-url {
    color: var(--secondary-color);
    word-break: break-all;
}

.overall-score-badge {
    background: var(--secondary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    min-width: 120px;
}

.overall-score-badge .score {
    font-size: 3rem;
    font-weight: bold;
    display: block;
}

.overall-score-badge .out-of {
    font-size: 1.2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 3rem 0;
}

.action-buttons .btn-primary,
.action-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.action-buttons .btn-download {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.overall-feedback {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scores-summary {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.score-item {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-item .label {
    font-weight: bold;
    color: var(--primary-color);
}

.score-item .score {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.section-detail {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-detail h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.summary {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}

.recommendations {
    list-style: none;
}

.recommendations li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #e8f5e9;
    border-left: 3px solid var(--success-color);
    border-radius: 3px;
}

/* Subscribe Page */
.subscribe-page {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.subscription-plan {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.price-display {
    margin: 2rem 0;
}

.price-display .price {
    font-size: 3rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.price-display .period {
    font-size: 1.5rem;
    color: #7f8c8d;
}

.features-list {
    text-align: left;
    margin: 2rem 0;
}

.features-list ul {
    list-style: none;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.payment-note {
    margin-top: 1.5rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page h1 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--bg-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Progress Page */
.progress-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.progress-container {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.progress-header #currentSection {
    font-weight: 600;
    color: var(--primary-color);
}

.progress-header #progressPercentage {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 15px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.error-box {
    background: #fff5f5;
    border-left: 4px solid #e74c3c;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.error-box h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-box p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* PDF Viewer Page */
.pdf-viewer-page {
    padding: 0;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.viewer-header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    flex-shrink: 0;
}

.viewer-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.sharing-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.btn-success {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.pdf-container {
    flex: 1;
    background: #525659;
    width: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.pdf-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Email Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.email-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-buttons button {
    min-width: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-grid, .reports-grid, .scores-grid {
        grid-template-columns: 1fr;
    }

    .report-page .report-header {
        flex-direction: column;
        gap: 1rem;
    }

    .price {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 20% 1rem;
        padding: 1.5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons button {
        width: 100%;
    }
}
