/*
Theme Name: HFF - Höllvikens Fotbollsförening
Theme URI: https://hollvikensff.se
Author: HFF Webteam
Author URI: https://hollvikensff.se
Description: Officiellt tema för Höllvikens Fotbollsförening - En modern och responsiv webbplats för klubben.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hff-theme
Tags: sports, football, soccer, custom-colors, custom-logo, responsive-layout
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/

:root {
    /* HFF Ljusturkos färgpalett */
    --hff-turquoise: #40E0D0;
    --hff-turquoise-light: #7FFFD4;
    --hff-turquoise-dark: #20B2AA;
    --hff-turquoise-pale: #AFEEEE;
    --hff-turquoise-glow: rgba(64, 224, 208, 0.4);
    
    /* Accentfärger */
    --hff-navy: #1a2a3a;
    --hff-navy-light: #2d4a5e;
    --hff-white: #ffffff;
    --hff-off-white: #f8fffe;
    --hff-gray: #6b7280;
    --hff-gray-light: #9ca3af;
    --hff-dark: #0f1419;
    
    /* Typografi */
    --font-heading: 'Bebas Neue', 'Impact', sans-serif;
    --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-turquoise: 0 4px 15px rgba(64, 224, 208, 0.4);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--hff-dark);
    background: var(--hff-off-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--hff-navy);
}

h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--hff-turquoise-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--hff-turquoise);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.container--narrow {
    max-width: 800px;
}

.container--wide {
    max-width: 1400px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--hff-turquoise), var(--hff-turquoise-dark));
    color: var(--hff-white);
    box-shadow: var(--shadow-turquoise);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(64, 224, 208, 0.5);
    color: var(--hff-white);
}

.btn-outline {
    background: transparent;
    color: var(--hff-turquoise);
    border: 2px solid var(--hff-turquoise);
}

.btn-outline:hover {
    background: var(--hff-turquoise);
    color: var(--hff-navy);
}

.btn-white {
    background: var(--hff-white);
    color: var(--hff-navy);
}

.btn-white:hover {
    background: var(--hff-turquoise-light);
    color: var(--hff-navy);
}

/* 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;
    width: 1px;
    word-wrap: normal !important;
}

/* WordPress Classes */
.alignleft {
    float: left;
    margin-right: var(--space-md);
    margin-bottom: var(--space-sm);
}

.alignright {
    float: right;
    margin-left: var(--space-md);
    margin-bottom: var(--space-sm);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* WordPress Gallery */
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-sm);
}

/* WordPress Captions */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--hff-gray);
    padding: var(--space-xs);
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 var(--hff-turquoise-glow); 
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 30px 10px rgba(64, 224, 208, 0.2); 
    }
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-50px) rotate(10deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }

.py-1 { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-2 { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-3 { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
