/*
Theme Name: Psychside Theme
Theme URI: https://psychside.com/theme
Author: Psychside
Author URI: https://psychside.com
Description: A specialized theme for the Psychside Master Test Engine. Redesigned to match PsyWellPath style with Dark Green accents.
Version: 3.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: psychside-theme
*/

:root {
    --primary-color: #006400;
    /* Dark Green */
    --primary-hover: #004d00;
    --bg-color: #F3F4F6;
    /* Light Grey background like reference */
    --card-bg: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Basic */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-title::before {
    content: '🧠';
    /* Logo Icon */
    font-size: 1.5rem;
}

.site-title a {
    color: var(--text-main);
    text-decoration: none;
}

/* Nav */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.main-navigation ul li a:hover {
    color: var(--text-main);
    background-color: #F3F4F6;
    text-decoration: none;
}

/* Dropdown */
.main-navigation ul li:hover>ul {
    display: block;
}

.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}

.main-navigation ul ul li a {
    display: block;
    padding: 10px 20px;
}

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

.site-content {
    padding-bottom: 80px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 20px 60px;
    background: #FFFFFF;
    margin-bottom: 40px;
    border-bottom: 1px solid #E5E7EB;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Hero Search */
.hero-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 16px 24px;
    border-radius: 9999px;
    border: 1px solid #E5E7EB;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    outline: none;
    transition: all 0.2s;
}

.hero-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.1);
}

/* Category Grid */
.category-section {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    text-transform: none;
    letter-spacing: -0.025em;
    border: none;
    padding: 0;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Card Design - Reference Style */
.test-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #F3F4F6;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    text-decoration: none !important;
    box-sizing: border-box;
}

.test-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #E5E7EB;
    text-decoration: none;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-badge {
    background-color: #ECFDF5;
    /* Light green bg */
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

.card-icon {
    font-size: 1.5rem;
}

.test-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.test-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.start-text {
    color: var(--primary-color);
    font-weight: 700;
}

/* View More Button */
.btn-primary {
    display: inline-block;
    background: #FFFFFF;
    color: var(--text-main);
    border: 1px solid #E5E7EB;
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    text-decoration: none;
    color: var(--text-main);
}


/* Single Test Layout */
.single-test-layout {
    max-width: 800px;
    /* Centered narrow column */
    margin: 40px auto;
}

/* Header Card */
.test-header-card {
    background: linear-gradient(135deg, var(--primary-color), #004d00);
    color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.single-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: #fff;
}

.test-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1rem;
    opacity: 0.9;
    color: #fff;
}

/* Content Card */
.single-content-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid #E5E7EB;
}

/* Footer */
.site-footer {
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    color: var(--text-muted);
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
    font-size: 0.9rem;
}