/*
 * OPG Enhanced Styles
 * Extends the Halcyonic base (main.css) with modern features
 * Colors matched to OPG logo:
 *   Navy Blue #1B2D6B (curly brace in logo)
 *   Slate Gray #7B8CA0 (text in logo)
 */

:root {
    --opg-navy: #1B2D6B;
    --opg-navy-dark: #142254;
    --opg-navy-light: #2A3F80;
    --opg-slate: #7B8CA0;
    --opg-slate-dark: #5E6D82;
    --opg-blue: #1B2D6B;
    --opg-dark: #2C3440;
    --opg-gray: #5E6D82;
    --opg-light: #f2f4f7;
    --opg-white: #ffffff;
}

/* =============================================
   NAVIGATION ENHANCEMENTS
   ============================================= */

#header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    z-index: 100;
}

#header nav#nav {
    display: inline-block;
}

#header nav#nav a {
    color: var(--opg-dark);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 400;
    margin-left: 30px;
    padding: 8px 0;
    transition: color 0.2s ease;
    display: inline-block;
}

#header nav#nav a:hover {
    color: var(--opg-navy);
}

#header nav#nav a.button-nav {
    background: linear-gradient(to bottom, var(--opg-navy-light), var(--opg-navy));
    color: #fff;
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 400;
    text-shadow: -1px -1px 1px rgba(0,0,0,0.3);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.15);
    transition: background 0.2s ease, transform 0.15s ease;
}

#header nav#nav a.button-nav:hover {
    background: linear-gradient(to bottom, #3350a0, var(--opg-navy-light));
    color: #fff;
    transform: translateY(-1px);
}

/* Division Bar */
.opg-division-bar {
    background: var(--opg-blue);
    color: #fff;
    font-size: 0.85em;
    padding: 8px 0;
    text-align: center;
}

.opg-division-bar a {
    color: #fff;
    text-decoration: underline;
}

.opg-division-bar a:hover {
    color: #FFC72C;
}

/* =============================================
   HERO SECTIONS
   ============================================= */

.opg-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    color: #fff;
    text-shadow: -1px -1px 2px rgba(0,0,0,0.5);
    position: relative;
}

.opg-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(16, 40, 117, 0.65) 0%,
        rgba(53, 61, 64, 0.7) 100%
    );
}

.opg-hero .container {
    position: relative;
    z-index: 1;
}

.opg-hero h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.25em;
}

.opg-hero p {
    font-size: 1.3em;
    color: #fff;
    font-weight: 300;
    line-height: 1.5em;
    max-width: 780px;
}

.opg-hero .button {
    display: inline-block;
    background: linear-gradient(to bottom, var(--opg-navy-light), var(--opg-navy));
    color: #fff;
    padding: 12px 36px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 400;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-shadow: -1px -1px 1px rgba(0,0,0,0.4);
}

.opg-hero .button:hover {
    background: linear-gradient(to bottom, #3350a0, var(--opg-navy-light));
    transform: translateY(-2px);
    box-shadow: 3px 5px 10px rgba(0,0,0,0.3);
}

/* =============================================
   DARK FEATURE SECTIONS (Matches #features)
   ============================================= */

.opg-dark-section {
    background: var(--opg-dark) url("../css/images/bg02.jpg");
    border-bottom: solid 1px #272e31;
    padding: 55px 0;
    text-shadow: -1px -1px 1px rgba(0,0,0,0.75);
    color: #a0a8ab;
}

.opg-dark-section h2 {
    font-size: 1.6em;
    color: #fff;
    margin: 0 0 0.5em 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.opg-dark-section h3 {
    font-size: 1.2em;
    color: #fff;
    margin: 0 0 0.25em 0;
}

.opg-dark-section a {
    color: #e0e8eb;
}

.opg-dark-section strong {
    color: #fff;
}

/* =============================================
   CONTENT CARDS
   ============================================= */

.opg-card {
    background: #fff;
    padding: 30px 25px;
    box-shadow: 2px 2px 4px rgba(128,128,128,0.12);
    margin: 0 0 25px 0;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.opg-card:hover {
    transform: translateY(-3px);
    box-shadow: 2px 4px 12px rgba(128,128,128,0.2);
}

.opg-card h3 {
    color: var(--opg-blue);
    font-size: 1.3em;
    font-weight: 500;
    margin-bottom: 0.5em;
}

.opg-card p {
    color: var(--opg-gray);
    margin-bottom: 0;
}

/* =============================================
   CONTEST GRID CARDS
   ============================================= */

.contest-card {
    background: #fff;
    padding: 25px;
    box-shadow: 2px 2px 4px rgba(128,128,128,0.12);
    border-radius: 6px;
    border-left: 4px solid var(--opg-blue);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contest-card:hover {
    transform: translateY(-3px);
    box-shadow: 2px 4px 12px rgba(128,128,128,0.2);
    border-left-color: var(--opg-slate);
}

.contest-card h3 {
    color: var(--opg-blue);
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 0.4em;
}

.contest-card .season-tag {
    display: inline-block;
    background: var(--opg-blue);
    color: #fff;
    font-size: 0.75em;
    padding: 2px 10px;
    border-radius: 3px;
    margin-bottom: 0.6em;
    font-weight: 400;
}

.contest-card p {
    color: var(--opg-gray);
    font-size: 0.95em;
    flex-grow: 1;
}

.contest-card .card-actions {
    margin-top: auto;
    padding-top: 15px;
}

.contest-card .card-actions a {
    display: inline-block;
    margin-right: 10px;
    font-size: 0.9em;
}

/* =============================================
   PRICING CARDS
   ============================================= */

.pricing-card {
    background: #fff;
    padding: 35px 25px;
    box-shadow: 2px 2px 6px rgba(128,128,128,0.12);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 2px 6px 16px rgba(128,128,128,0.2);
}

.pricing-card.featured {
    border: 2px solid var(--opg-navy);
}

.pricing-card h3 {
    color: var(--opg-blue);
    font-size: 1.3em;
    font-weight: 500;
    margin-bottom: 0.5em;
}

.pricing-card .price {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--opg-dark);
    margin: 0.3em 0;
}

.pricing-card .price-note {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 1em;
}

.pricing-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em 0;
}

.pricing-card ul li {
    padding: 0.4em 0 0.4em 28px;
    background: url("../css/images/icon-checkmark.png") 0 0.65em no-repeat;
    background-size: 16px;
    font-size: 0.95em;
    color: var(--opg-gray);
    border-bottom: 1px solid #f0f0f0;
}

.pricing-card .card-actions {
    margin-top: auto;
}

/* =============================================
   STEP CARDS (How It Works)
   ============================================= */

.step-card {
    background: #fff;
    padding: 30px 25px;
    box-shadow: 2px 2px 4px rgba(128,128,128,0.12);
    border-radius: 6px;
    text-align: center;
    transition: transform 0.2s ease;
}

.step-card:hover {
    transform: translateY(-2px);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: var(--opg-blue);
    color: #fff;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
}

.step-card h3 {
    color: var(--opg-blue);
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 0.5em;
}

/* =============================================
   BUTTONS
   ============================================= */

.button,
#content .button,
#features .button,
#footer .button,
.opg-hero .button,
.opg-dark-section .button {
    display: inline-block;
    background: linear-gradient(to bottom, var(--opg-navy-light), var(--opg-navy));
    color: #fff !important;
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 400;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3), inset 0 2px 0 0 rgba(160,180,220,0.4), inset 0 0 0 2px rgba(42,63,128,0.6), 3px 3px 3px 1px rgba(0,0,0,0.15);
    text-shadow: -1px -1px 1px rgba(0,0,0,0.5);
    transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover,
#content .button:hover,
#features .button:hover,
#footer .button:hover,
.opg-hero .button:hover,
.opg-dark-section .button:hover {
    background: linear-gradient(to bottom, #3350a0, var(--opg-navy-light));
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.button-outline {
    display: inline-block;
    background: transparent;
    color: var(--opg-blue);
    text-decoration: none;
    padding: 9px 26px;
    border: 2px solid var(--opg-blue);
    border-radius: 8px;
    font-weight: 400;
    transition: background 0.15s ease, color 0.15s ease;
}

.button-outline:hover {
    background: var(--opg-blue);
    color: #fff;
    text-decoration: none;
}

.button-sm {
    padding: 6px 18px;
    font-size: 0.9em;
}

/* Ensure submit buttons inside forms also get white text */
button.button,
input[type="submit"].button {
    color: #fff !important;
    border: none;
    cursor: pointer;
}

/* =============================================
   FORM STYLING
   ============================================= */

.opg-form label {
    display: block;
    font-weight: 400;
    margin-bottom: 0.3em;
    color: var(--opg-dark);
}

.opg-form input[type="text"],
.opg-form input[type="email"],
.opg-form input[type="password"],
.opg-form input[type="datetime-local"],
.opg-form select,
.opg-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 1em;
    font-weight: 300;
    margin-bottom: 1em;
    transition: border-color 0.2s ease;
}

.opg-form input:focus,
.opg-form select:focus,
.opg-form textarea:focus {
    border-color: var(--opg-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(16,40,117,0.1);
}

/* =============================================
   EDITION BADGES
   ============================================= */

.edition-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edition-badge.fundraiser { background: #27ae60; color: #fff; }
.edition-badge.office     { background: var(--opg-blue); color: #fff; }
.edition-badge.bar        { background: #e67e22; color: #fff; }
.edition-badge.brand      { background: #8e44ad; color: #fff; }
.edition-badge.family     { background: #3498db; color: #fff; }

/* =============================================
   DASHBOARD STYLES
   ============================================= */

.dashboard-card {
    background: #fff;
    padding: 25px;
    box-shadow: 2px 2px 4px rgba(128,128,128,0.12);
    border-radius: 6px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    border-color: var(--opg-blue);
}

.dashboard-card h3 {
    color: var(--opg-blue);
    font-size: 1.1em;
    margin-bottom: 0.3em;
}

.dashboard-card p {
    color: #888;
    font-size: 0.9em;
}

.stat-box {
    background: #fff;
    padding: 20px;
    box-shadow: 2px 2px 4px rgba(128,128,128,0.12);
    border-radius: 6px;
    text-align: center;
    border-top: 3px solid var(--opg-blue);
}

.stat-box .stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--opg-blue);
    display: block;
}

.stat-box .stat-label {
    color: #888;
    font-size: 0.9em;
}

/* =============================================
   TABLE STYLES
   ============================================= */

.opg-table {
    width: 100%;
    border-collapse: collapse;
}

.opg-table th {
    background: var(--opg-blue);
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 400;
}

.opg-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e8e8e8;
}

.opg-table tr:hover td {
    background: #f8f9fa;
}

/* =============================================
   CODE BLOCKS (API docs)
   ============================================= */

.code-block {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 20px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.6;
    overflow-x: auto;
    margin-bottom: 1.5em;
}

.code-block .keyword { color: #cba6f7; }
.code-block .string  { color: #a6e3a1; }
.code-block .comment { color: #6c7086; }

/* =============================================
   UTILITY
   ============================================= */

.text-center { text-align: center; }
.text-blue   { color: var(--opg-blue); }
.text-red    { color: var(--opg-slate); }
.text-white  { color: #fff; }
.mb-0        { margin-bottom: 0 !important; }
.mb-1        { margin-bottom: 1em !important; }
.mb-2        { margin-bottom: 2em !important; }
.mt-1        { margin-top: 1em !important; }
.mt-2        { margin-top: 2em !important; }
.pt-2        { padding-top: 2em !important; }

/* =============================================
   MAIN.CSS OVERRIDES (red → navy/slate)
   ============================================= */

/* Override #content link color from red to navy */
#content a {
    color: var(--opg-navy);
}

#content a:hover {
    color: var(--opg-navy-light);
}

/* Override .button-large from red gradient to navy */
.button-large {
    background-image: linear-gradient(to bottom, #2A3F80, #1B2D6B) !important;
    background-color: #1B2D6B !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3), inset 0 2px 0 0 rgba(160,180,220,0.4), inset 0 0 0 2px rgba(42,63,128,0.6), 3px 3px 3px 1px rgba(0,0,0,0.15) !important;
}

.button-large:hover {
    background-image: linear-gradient(to bottom, #3350a0, #2A3F80) !important;
    background-color: #3350a0 !important;
}

.button-large:active {
    background-image: linear-gradient(to bottom, #142254, #1B2D6B) !important;
    background-color: #142254 !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media screen and (max-width: 1280px) {
    .opg-hero h1 { font-size: 2em; }
    .opg-hero p { font-size: 1.15em; }
    #header nav#nav a { margin-left: 20px; font-size: 1em; }
}

@media screen and (max-width: 980px) {
    #header nav#nav { display: none; }
    .opg-hero { padding: 50px 0; }
    .opg-hero h1 { font-size: 1.6em; }
    .opg-hero p { font-size: 1.05em; }
    .opg-division-bar { font-size: 0.75em; padding: 6px 0; }
}

@media screen and (max-width: 736px) {
    .opg-hero { padding: 35px 0; }
    .opg-hero h1 { font-size: 1.3em; }
    .opg-hero p { font-size: 0.95em; }
    .pricing-card .price { font-size: 2em; }
    .opg-division-bar { display: none; }
}
