/*
Theme Name: Digital Future Lab
Theme URI: https://digitalfuturelab.mk
Author: DFL Development Team
Author URI: https://digitalfuturelab.mk
Description: Custom theme for Digital Future Lab - North Macedonia's premier youth digital innovation center. Built with native WordPress functionality, no page builders or plugins required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dfl
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive-design
*/

/* CSS Variables */
:root {
    /* Colors */
    --primary-dark: #1E3A8A;
    --accent-blue: #00C3FF;
    --white: #FFFFFF;
    --light-gray: #F3F4F6;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-gray: #E5E7EB;

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-regular: 400;
    --font-weight-semi: 600;
    --font-weight-extra: 800;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    --spacing-2xl: 120px;

    /* Container */
    --container-max: 1200px;
    --container-padding: 20px;

    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.6s ease-out;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
}

h1 {
    font-size: 56px;
    font-weight: var(--font-weight-extra);
    line-height: 1.2;
}

h2 {
    font-size: 42px;
    font-weight: var(--font-weight-extra);
    line-height: 1.3;
}

h3 {
    font-size: 32px;
    font-weight: var(--font-weight-semi);
    line-height: 1.4;
}

h4 {
    font-size: 24px;
    font-weight: var(--font-weight-semi);
    line-height: 1.5;
}

h5 {
    font-size: 20px;
    font-weight: var(--font-weight-semi);
    line-height: 1.5;
}

h6 {
    font-size: 18px;
    font-weight: var(--font-weight-semi);
    line-height: 1.5;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* Lists */
ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
    h5 { font-size: 18px; }
    h6 { font-size: 16px; }
}

/* Section Padding */
.section-padding {
    padding: var(--spacing-xl) 0;
}

.section-padding-lg {
    padding: var(--spacing-2xl) 0;
}

/* Background Colors */
.bg-light {
    background-color: var(--light-gray);
}

.bg-dark {
    background-color: var(--primary-dark);
    color: var(--white);
}

.bg-accent {
    background-color: var(--accent-blue);
    color: var(--white);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* WordPress Core */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    padding: 10px 0;
}

.sticky {
    display: block;
}

.gallery-caption {
    display: block;
}

.bypostauthor {
    display: block;
}
