/*
 * Base CSS
 * PRWSolar
 */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-green: #2E7D32;
    --primary-green-light: #4CAF50;
    --primary-green-dark: #1B5E20;
    --accent-orange: #FDB813;
    --accent-orange-light: #FFD54F;
    --tech-blue: #2196F3;
    --white: #FFFFFF;
    --gray-light: #F5F8FA;
    --gray-medium: #E0E7EF;
    --gray-border: #E5E9F0;
    --gray-text: #666666;
    --gray-text-dark: #333333;
    --dark-bg: #1A2A3A;
    --darker-bg: #0A1922;
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    --shadow-hover: 0 25px 50px rgba(46,125,50,0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s ease;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--gray-text-dark);
    line-height: 1.6;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.site-main {
    min-height: 60vh;
}

/* ===== UTILITIES ===== */
.text-green {
    color: var(--primary-green);
}

.text-white {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto 50px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 20px;
    background: var(--primary-green);
    color: var(--white);
    padding: 10px 16px;
    z-index: 9999;
    border-radius: var(--radius-md);
}

.skip-link:focus {
    top: 20px;
}

/* ===== TYPOGRAPHY HELPERS ===== */
.article-content p,
.post-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol,
.post-content ul,
.post-content ol {
    margin: 20px 0 30px 40px;
}

.article-content li,
.post-content li {
    margin-bottom: 12px;
}

/* ===== FORMS BASICS ===== */
input,
textarea,
select {
    outline: none;
}

input.error,
textarea.error,
select.error {
    border-color: #f44336 !important;
}

.error-message {
    display: block;
    color: #f44336;
    font-size: 13px;
    margin-top: 6px;
}

/* ===== PAGINATION ===== */
.pagination ul {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--gray-light);
    color: var(--gray-text-dark);
}

.pagination .current {
    background: var(--primary-green);
    color: var(--white);
}

/* ===== TABLE ===== */
table {
    width: 100%;
}

th, td {
    vertical-align: top;
}
