/*
Theme Name: Forex Prime
Theme URI: https://example.com/forex-prime
Author: Gemini Dev
Description: A professional theme for Foreign Exchange courses, optimized for the Email Code Content Gate plugin.
Version: 1.1.0
License: GNU General Public License v2 or later
*/

:root {
    --primary-color: #0f172a; /* Navy Blue */
    --accent-color: #d4af37;  /* Gold */
    --text-color: #334155;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --error: #ef4444;
    --success: #22c55e;
}

/* Reset & Basics */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}
a { text-decoration: none; color: var(--primary-color); transition: 0.3s; }
a:hover { color: var(--accent-color); }
img { max-width: 100%; height: auto; }

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Structure */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 0;
    position: relative;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.site-branding img, 
.custom-logo { 
    max-height: 60px; 
    width: auto; 
    display: block;
}
.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    margin-left: auto;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}
.main-navigation a:hover { color: var(--primary-color); }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 4px;
}
.btn:hover { background: #fff; border: 1px solid var(--accent-color); }

.btn-logout { 
    background: var(--error); 
    color: white !important; 
    padding: 8px 15px; 
    border-radius: 4px; 
    font-size: 0.9rem; 
    font-weight: bold; 
    text-decoration: none;
    transition: background 0.3s;
}
.btn-logout:hover { 
    background: #dc2626; 
    color: white; 
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; text-align: center; }
    .header-actions { flex-direction: column; margin-left: 0; }
}

/* Content General */
.site-content { padding: 4rem 0; min-height: 60vh; }
.page-title { margin-bottom: 2rem; color: var(--primary-color); border-bottom: 2px solid #e2e8f0; padding-bottom: 1rem; }
.post { background: var(--white); padding: 2rem; margin-bottom: 2rem; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: #94a3b8;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* --- PLUGIN INTEGRATION: Secure Form Styling --- */
.eccg-gate-form {
    max-width: 480px;
    margin: 3rem auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-top: 6px solid var(--accent-color);
    text-align: center;
}

.eccg-gate-form::before {
    content: "🔒 Secure Member Access";
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eccg-form p { margin-bottom: 1.5rem; text-align: left; }
.eccg-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.eccg-form input[type="email"],
.eccg-form input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #f8fafc;
}

.eccg-form input[type="email"]:focus,
.eccg-form input[type="text"]:focus {
    border-color: var(--accent-color);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.eccg-form input[type="submit"] {
    width: 100%;
    background: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 14px !important;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.eccg-form input[type="submit"]:hover { background: #1e293b !important; }
.eccg-alert { background-color: #fee2e2 !important; color: var(--error) !important; border: 1px solid #fecaca !important; border-radius: 6px; padding: 1rem; margin-bottom: 1.5rem; font-size: 0.9rem; }
.eccg-message.success { background-color: #dcfce7; color: #166534; padding: 1rem; border-radius: 6px; border: 1px solid #bbf7d0; text-align: center; }