/* 
==============================================
    OSCE MAKER - UNIFIED STATION VIEW STYLES
    Applies to both single post templates and shortcode embeds.
==============================================
*/

/* --- Base Container --- */
.osce-station-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 2em auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #4a5568;
    max-width: 900px;
}
.osce-station-container *, .osce-station-container *::before, .osce-station-container *::after {
    box-sizing: border-box;
}

/* --- Layout --- */
.osce-station-container .station-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 220px;
    grid-template-areas: "main sidebar";
    gap: 24px;
}
@media (max-width: 768px) {
    .osce-station-container .station-content-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas: "sidebar" "main";
    }
}

/* --- Header --- */
.osce-station-container .station-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}
.osce-station-container .station-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
}
.osce-station-container .station-meta span {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 9999px;
    margin-right: 8px;
    background-color: #e6f7ff; color: #1d6a96;
}

/* --- Main Content --- */
.osce-station-container .station-main-content {
    grid-area: main;
    min-width: 0;
}
.osce-station-container .osce-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
}
.osce-station-container .osce-tab-link {
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #718096;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.osce-station-container .osce-tab-link.active {
    color: #2f54eb;
    border-color: #2f54eb;
}

/* This is the key to fixing the tabs */
.osce-station-container .osce-tab-content .osce-tab-pane {
    display: none;
    padding: 20px 5px;
}
.osce-station-container .osce-tab-content .osce-tab-pane.active {
    display: block;
}

/* --- Sidebar --- */
.osce-station-container .station-sidebar {
    grid-area: sidebar;
    align-self: start;
}
.osce-station-container .timer-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.osce-station-container .timer-display { position: relative; width: 80px; height: 80px; margin: 0 auto 1em; }
.osce-station-container .timer-progress-circle { transform: rotate(-90deg); transform-origin: 50% 50%; }
.osce-station-container .timer-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.osce-station-container .timer-time { font-size: 1.8em; font-weight: 600; color: #1a202c; }
.osce-station-container .timer-mode { font-size: 0.8em; color: #718096; }
.osce-station-container .timer-controls { display: flex; justify-content: space-around; margin-top: 1em; }
.osce-station-container .timer-btn { background: #e2e8f0; border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 1.2em; }
.osce-station-container .timer-btn:hover { background: #cbd5e0; }

/* --- Content inside tabs --- */
.osce-station-container h4 { font-size: 18px; font-weight: 600; color: #1a202c; margin: 0 0 16px 0; }
.osce-station-container h5 { font-size: 16px; font-weight: 600; color: #2d3748; margin-top: 20px; margin-bottom: 12px; }
.osce-station-container .osce-tasks-list, .osce-station-container .checklist { list-style: none; padding-left: 0; }
.osce-station-container .osce-tasks-list {
    list-style: decimal;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px 16px 8px 40px;
}
.osce-station-container .checklist-item {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; cursor: pointer; user-select: none;
}
.osce-station-container .checkbox-icon {
    display: inline-block; width: 16px; height: 16px; border: 2px solid #bdc3c7; border-radius: 3px;
    margin-right: 10px; flex-shrink: 0; transition: all 0.2s ease; position: relative; margin-top: 3px;
}
.osce-station-container .checkbox-icon.checked { background-color: #2f54eb; border-color: #2f54eb; }
.osce-station-container .checkbox-icon.checked::after {
    content: '✔'; color: white; position: absolute; top: -3px; left: 1px; font-size: 14px; font-weight: bold;
}
.osce-station-container .checkbox-icon.critical { border-color: #d48806; }
.osce-station-container .checkbox-icon.critical::after { content: '★'; color: #d48806; position: absolute; top: -2px; left: 1px; font-size: 14px; }
.osce-station-container .checkbox-icon.critical.checked::after { content: '✔'; color: white; }

.osce-station-container .station-timer .bell-icon {
    cursor: pointer;
    margin-left: 10px;
    font-size: 1.2em;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.osce-station-container .station-timer .bell-icon:hover {
    opacity: 1;
}

/* ==========================================================================
   Archive Page Styles - templates/archive-osce_station.php
   ========================================================================== */

.osce-study-session {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.study-session-header {
    background: #f0f2f5;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.study-session-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    color: #1d2327;
}

.study-session-header p {
    font-size: 1.1rem;
    color: #50575e;
    margin: 0;
}

.search-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.search-box {
    flex-grow: 1;
    display: flex;
}

.search-box input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    padding: 0.75rem;
    font-size: 1rem;
}

.search-box .search-btn {
    border: 1px solid #0073aa;
    background: #0073aa;
    color: white;
    padding: 0 1rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.filter-group {
    display: flex;
    gap: 1rem;
}

.filter-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

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

.station-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.station-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.station-header {
    padding: 1rem;
}

.specialty-badge {
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.station-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.station-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    opacity: 0.7;
}
.station-actions button:hover {
    opacity: 1;
}

.station-title {
    font-size: 1.25rem;
    margin: 0;
    padding: 0 1rem;
}

.station-title a {
    text-decoration: none;
    color: #1d2327;
}

.station-excerpt {
    padding: 0.5rem 1rem;
    color: #50575e;
    flex-grow: 1;
    font-size: 0.95rem;
}

.station-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.station-info {
    display: flex;
    gap: 0.5rem;
}

.complexity-badge, .status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.complexity-badge {
    background-color: #e0e0e0;
    color: #333;
}

.status-badge.not-attempted {
    background-color: #fff0f0;
    color: #d9534f;
}

.start-practice-btn {
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.start-practice-btn:hover {
    background-color: #005a87;
}

.no-stations {
    background: #fff;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.no-stations .btn-primary {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 1rem;
} 