/*
 Theme Name:   GeneratePress Child (Modern & Professional)
 Theme URI:    https://generatepress.com
 Description:  A modern, highly professional child theme for GeneratePress. Features a sophisticated slate/blue palette, Google Fonts (Inter, Outfit), glassmorphism header, and soft shadows.
 Author:       Ruszamy Team
 Author URI:   https://ruszamy.pl
 Template:     generatepress
 Version:      1.0.0
*/

/* ==========================================================================
   1. IMPORTS & VARIABLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700&display=swap');

:root {
    /* Professional Color Palette */
    --gp-primary: #0F172A; /* Deep Slate */
    --gp-secondary: #0284C7; /* Crisp Blue */
    --gp-accent: #F59E0B; /* Amber */
    --gp-bg: #F8FAFC; /* Off-white */
    --gp-surface: #FFFFFF;
    --gp-text: #334155;
    --gp-text-heading: #1E293B;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

    /* Layout & Styling */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. GLOBAL TYPOGRAPHY & COLORS
   ========================================================================== */

body {
    background-color: var(--gp-bg);
    color: var(--gp-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, 
.site-title, 
.widget-title {
    font-family: var(--font-heading);
    color: var(--gp-text-heading);
    font-weight: 600;
}

a {
    color: var(--gp-secondary);
    transition: var(--transition-standard);
}

a:hover, a:focus {
    color: var(--gp-primary);
    text-decoration: none;
}

/* ==========================================================================
   3. HEADER & NAVIGATION (Glassmorphism)
   ========================================================================== */

.site-header {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
}

.main-navigation {
    background-color: transparent !important;
    font-family: var(--font-heading);
    font-weight: 500;
}

.main-navigation .main-nav ul li a {
    color: var(--gp-primary);
    transition: var(--transition-standard);
}

.main-navigation .main-nav ul li:hover > a, 
.main-navigation .main-nav ul li.current-menu-item > a {
    color: var(--gp-secondary);
    background-color: transparent;
}

/* ==========================================================================
   4. CONTENT CARDS & POSTS
   ========================================================================== */

.inside-article {
    background-color: var(--gp-surface);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem !important;
    margin-bottom: 2rem;
    transition: var(--transition-standard);
    border: 1px solid rgba(0,0,0,0.03);
}

.generate-columns-container .inside-article {
    height: 100%;
}

.inside-article:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* Featured Images */
.post-image {
    margin-top: -2.5rem !important;
    margin-left: -2.5rem !important;
    margin-right: -2.5rem !important;
    margin-bottom: 2rem !important;
}

.post-image img {
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    width: 100%;
    object-fit: cover;
}

/* ==========================================================================
   5. BUTTONS & FORMS
   ========================================================================== */

button, 
.button, 
.wp-block-button__link,
input[type="submit"] {
    background-color: var(--gp-secondary);
    color: #ffffff !important;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-standard);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

button:hover, 
.button:hover, 
.wp-block-button__link:hover,
input[type="submit"]:hover {
    background-color: var(--gp-primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

input[type="text"], 
input[type="email"], 
input[type="url"], 
input[type="password"], 
input[type="search"], 
input[type="tel"], 
input[type="number"], 
textarea, 
select {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    font-family: var(--font-body);
    transition: var(--transition-standard);
    background-color: #fafafa;
}

input:focus, 
textarea:focus, 
select:focus {
    border-color: var(--gp-secondary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
    outline: none;
    background-color: #ffffff;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--gp-primary);
    color: rgba(255, 255, 255, 0.8);
    border-top: none;
}

.site-footer a {
    color: #ffffff;
}

.site-footer a:hover {
    color: var(--gp-accent);
}

.site-info {
    color: rgba(255, 255, 255, 0.6);
}
