/* ICT Mentor Free Signals - Stylesheet */
/* Dark theme matching sales.html */

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0a0a0a;
    --dark-light: #111;
    --dark-card: #151515;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #333;
    --border-light: #444;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.signals-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    background: var(--dark-light);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand a {
    text-decoration: none;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-ict {
    color: var(--primary);
}

.brand-badge {
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-light);
}

.nav-user {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.btn-nav:hover {
    background: var(--primary-dark);
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* =====================================================
   HERO / CTA SECTION
   ===================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-light) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    transition: all 0.5s ease-out;
    overflow: hidden;
    max-height: 500px;
}

/* Auto-hide hero for logged-in users */
.hero-section.hero-hidden {
    max-height: 0;
    padding: 0;
    margin-bottom: 0;
    border: none;
    opacity: 0;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-section h1 span {
    color: var(--primary);
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-form input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--dark);
    color: var(--text);
    font-size: 1rem;
    min-width: 250px;
}

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

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--dark-card);
    color: var(--text);
    border: 1px solid var(--border);
}

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

/* =====================================================
   SIGNALS GRID
   ===================================================== */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--primary);
}

.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.signal-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}

.signal-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

/* Pending card styling - orange border and glow */
.signal-card.signal-card-pending {
    border: 2px solid var(--warning);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.signal-card.signal-card-pending:hover {
    border-color: var(--warning);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
}

/* Pending ribbon/banner */
.signal-card-pending .pending-ribbon {
    position: absolute;
    top: 12px;
    left: -35px;
    background: var(--warning);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 40px;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Published card styling - subtle green accent */
.signal-card.signal-card-published {
    border-left: 3px solid var(--success);
}

.signal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--dark);
}

.signal-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

.signal-content {
    padding: 1.5rem;
}

.signal-date {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.signal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.signal-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.signal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signal-badge {
    background: var(--success);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.signal-badge.pending,
.signal-badge-pending {
    background: var(--warning);
}

/* Pending banner for signal detail page */
.pending-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid var(--warning);
    border-left: 4px solid var(--warning);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--warning);
}

.pending-banner i {
    font-size: 1.5rem;
}

.pending-banner span {
    font-size: 0.95rem;
    color: var(--text);
}

.pending-banner strong {
    color: var(--warning);
}

/* =====================================================
   LIVE TRADES SECTION
   ===================================================== */
.live-trades-section {
    margin-bottom: 2rem;
}

.section-title-live {
    color: var(--warning);
}

.section-title-live i {
    color: var(--warning);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--warning);
    margin-left: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.live-indicator .pulse {
    width: 8px;
    height: 8px;
    background: var(--warning);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.live-trade-card {
    background: var(--dark-card);
    border: 2px solid var(--warning);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.1);
}

.live-trade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.live-trade-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.live-trade-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.live-trade-meta .ref {
    font-family: monospace;
    font-size: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.live-trade-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
}

.live-analysis-card {
    background: var(--dark-card);
    display: flex;
    flex-direction: column;
}

.live-card-header {
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--warning);
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-card-image {
    height: 160px;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.live-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.live-card-image-placeholder {
    height: 160px;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 0.5rem;
}

.live-card-image-placeholder i {
    font-size: 1.5rem;
    opacity: 0.3;
}

.live-card-image-placeholder span {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
}

.live-card-content {
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
}

.live-card-content strong {
    color: var(--text);
}

.live-card-content h2,
.live-card-content h3,
.live-card-content h4 {
    color: var(--text);
    margin: 0.75rem 0 0.5rem 0;
    font-size: 0.85rem;
}

.live-card-content ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.live-card-content li {
    margin-bottom: 0.25rem;
}

.live-card-content .no-data {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.7;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    margin: 2.5rem 0;
    gap: 1rem;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-divider span {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

/* Responsive for live trades */
@media (max-width: 1200px) {
    .live-trade-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .live-trade-grid {
        grid-template-columns: 1fr;
    }

    .live-trade-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .live-trade-meta {
        flex-wrap: wrap;
    }
}

.signal-link {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.signal-link:hover {
    text-decoration: underline;
}

/* =====================================================
   SIGNAL DETAIL PAGE
   ===================================================== */
.signal-detail {
    max-width: 900px;
    margin: 0 auto;
}

.signal-header {
    margin-bottom: 2rem;
}

.signal-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: var(--primary);
}

.analysis-section {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.analysis-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analysis-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--dark);
}

.analysis-text {
    color: var(--text-muted);
    line-height: 1.8;
}

.analysis-text p {
    margin-bottom: 1rem;
}

/* =====================================================
   AUTH PAGES (Login/Register)
   ===================================================== */
.auth-container {
    max-width: 450px;
    margin: 3rem auto;
}

.auth-box {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
}

.auth-box h2 {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-box .subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

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

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

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--dark);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

.forgot-link {
    text-align: right;
    margin-top: 0.5rem;
}

.forgot-link a {
    color: var(--primary);
    font-size: 0.85rem;
    text-decoration: none;
}

.forgot-link a:hover {
    text-decoration: underline;
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary-light);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--dark-light);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.75rem !important;
    color: var(--text-muted);
    opacity: 0.7;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .cta-form {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-form input {
        min-width: auto;
    }

    .signals-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 1rem;
    }
}
