/*
Theme Name: Frau.at
Theme URI: https://frau.at
Author: Frau.at Team
Author URI: https://frau.at
Description: Ein elegantes, modernes Blog-Theme für Frauenthemen. Entwickelt für frau.at mit femininem Design, optimiert für Lifestyle, Mode, Beauty, Gesundheit und mehr.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
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: frauat
Tags: blog, one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks

Frau.at Theme - Das Lifestyle-Magazin für die moderne Frau.
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES - T3 Stack / Modern Style
   ========================================================================== */

:root {
    /* Shadows - Tailwind inspired */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-blur: blur(12px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Animation timings */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
    
    /* Gradients */
    --gradient-rose: linear-gradient(135deg, #DB7093 0%, #E8A87C 50%, #C38D9E 100%);
    --gradient-glow: radial-gradient(ellipse at top, rgba(219, 112, 147, 0.15) 0%, transparent 50%);
}

/* ==========================================================================
   BASE STYLES - MOBILE FIRST
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Animated gradient background glow */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 600px;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: -1;
}

/* Selection */
::selection {
    background-color: var(--wp--preset--color--accent-1);
    color: white;
}

/* Focus */
:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-1);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip Link */
.skip-link {
    background: var(--gradient-rose);
    color: white;
    padding: 0.75rem 1.5rem;
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 999999;
    border-radius: 0 0 12px 12px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transition: top 0.3s var(--ease-out-expo);
}

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

/* ==========================================================================
   HEADER - GLASSMORPHISM
   ========================================================================== */

.frauat-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    transition: all 0.3s var(--ease-out-expo);
}

.frauat-header:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Logo Animation */
.frauat-header .wp-block-site-title a {
    background: var(--gradient-rose);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s var(--ease-out-expo);
}

.frauat-header .wp-block-site-title a:hover {
    transform: scale(1.02);
}

/* Navigation Links */
.wp-block-navigation-item__content {
    position: relative;
    transition: color 0.2s ease;
}

.wp-block-navigation-item__content::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-rose);
    border-radius: 2px;
    transition: width 0.3s var(--ease-out-expo);
}

.wp-block-navigation-item__content:hover::after {
    width: 100%;
}

/* Mobile Navigation Overlay */
.wp-block-navigation__responsive-container.is-menu-open {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    animation: slideIn 0.4s var(--ease-out-expo);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   CARDS - MODERN STYLE
   ========================================================================== */

.frauat-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

/* Featured image should be edge-to-edge */
.frauat-card .wp-block-post-featured-image {
    border-radius: 0;
    margin: 0;
}

.frauat-card .wp-block-post-featured-image img {
    border-radius: 0;
}

@media (hover: hover) and (pointer: fine) {
    .frauat-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
        border-color: rgba(219, 112, 147, 0.2);
    }
    
    .frauat-card:hover .wp-block-post-featured-image img {
        transform: scale(1.05);
    }
}

/* Card Gradient Overlay on hover */
.frauat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-rose);
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .frauat-card:hover::before {
        opacity: 1;
    }
}

/* ==========================================================================
   FEATURED IMAGE
   ========================================================================== */

.wp-block-post-featured-image {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.wp-block-post-featured-image img {
    transition: transform 0.6s var(--ease-out-expo);
}

/* Gradient overlay on images */
.wp-block-post-featured-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .wp-block-post-featured-image:hover::after {
        opacity: 1;
    }
}

/* ==========================================================================
   CATEGORY TAGS - PILL STYLE
   ========================================================================== */

.wp-block-post-terms a {
    background: linear-gradient(135deg, rgba(219, 112, 147, 0.1) 0%, rgba(232, 168, 124, 0.1) 100%);
    color: var(--wp--preset--color--accent-1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-decoration: none !important;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    border: 1px solid rgba(219, 112, 147, 0.2);
    transition: all 0.3s var(--ease-out-expo);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.wp-block-post-terms a:hover {
    background: var(--gradient-rose);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(219, 112, 147, 0.3);
}

/* ==========================================================================
   BUTTONS - MODERN STYLE
   ========================================================================== */

.wp-block-button__link,
.wp-block-search__button {
    background: var(--gradient-rose) !important;
    border: none !important;
    border-radius: 9999px !important;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(219, 112, 147, 0.35);
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.wp-block-button__link::before,
.wp-block-search__button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wp-block-button__link:hover,
.wp-block-search__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(219, 112, 147, 0.4);
}

.wp-block-button__link:hover::before,
.wp-block-search__button:hover::before {
    opacity: 1;
}

/* Outline Button */
.is-style-outline .wp-block-button__link {
    background: transparent !important;
    border: 2px solid var(--wp--preset--color--accent-1) !important;
    color: var(--wp--preset--color--accent-1) !important;
    box-shadow: none;
}

.is-style-outline .wp-block-button__link:hover {
    background: var(--gradient-rose) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(219, 112, 147, 0.4);
}

/* ==========================================================================
   SEARCH FORM
   ========================================================================== */

.wp-block-search__inside-wrapper {
    flex-direction: column;
    gap: 0.75rem;
}

.wp-block-search__input {
    width: 100% !important;
    border-radius: 9999px !important;
    border: 2px solid var(--wp--preset--color--accent-6) !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.95rem !important;
    background: white;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: var(--shadow-sm);
}

.wp-block-search__input:focus {
    border-color: var(--wp--preset--color--accent-1) !important;
    box-shadow: 0 0 0 4px rgba(219, 112, 147, 0.1), var(--shadow-md) !important;
    outline: none;
}

.wp-block-search__button {
    width: 100%;
    justify-content: center;
}

@media (min-width: 600px) {
    .wp-block-search__inside-wrapper {
        flex-direction: row;
    }
    
    .wp-block-search__button {
        width: auto;
    }
}

/* ==========================================================================
   SECTION HEADERS WITH ICONS
   ========================================================================== */

.frauat-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Animated emoji icons */
.frauat-section-header p {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */

.has-rose-coral-gradient-background {
    position: relative;
    overflow: hidden;
}

.has-rose-coral-gradient-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: shimmer 15s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Newsletter Card */
.has-rose-coral-gradient-background .has-white-background-color {
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   FOOTER - MODERN STYLE
   ========================================================================== */

.frauat-footer {
    position: relative;
    overflow: hidden;
}

.frauat-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.frauat-footer .wp-block-columns {
    flex-direction: column;
}

.frauat-footer .wp-block-column {
    flex-basis: 100% !important;
    margin-bottom: var(--wp--preset--spacing--30);
}

.frauat-footer .wp-block-navigation-item__content {
    opacity: 0.7;
    transition: all 0.2s ease;
}

.frauat-footer .wp-block-navigation-item__content:hover {
    opacity: 1;
    transform: translateX(4px);
}

.frauat-footer .wp-block-navigation-item__content::after {
    display: none;
}

/* Social Icons Animation */
.frauat-footer .wp-block-social-links .wp-social-link {
    transition: all 0.3s var(--ease-out-expo);
}

.frauat-footer .wp-block-social-links .wp-social-link:hover {
    transform: translateY(-4px) scale(1.1);
}

/* ==========================================================================
   READING PROGRESS BAR
   ========================================================================== */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-rose);
    z-index: 99999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(219, 112, 147, 0.5);
}

/* ==========================================================================
   ANIMATED ILLUSTRATIONS - SVG Decorations
   ========================================================================== */

/* Floating circles decoration */
.frauat-decoration {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.frauat-decoration-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(219, 112, 147, 0.08) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Animated blob shape */
.frauat-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(219, 112, 147, 0.1) 0%, rgba(195, 141, 158, 0.1) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob 20s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes blob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 40% 60% 60% 40% / 70% 30% 60% 40%; }
    75% { border-radius: 60% 40% 30% 70% / 40% 50% 60% 50%; }
}

/* ==========================================================================
   LOADING ANIMATION
   ========================================================================== */

.frauat-loading {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 2rem;
}

.frauat-loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wp--preset--color--accent-1);
    animation: bounce 1.4s ease-in-out infinite both;
}

.frauat-loading span:nth-child(1) { animation-delay: -0.32s; }
.frauat-loading span:nth-child(2) { animation-delay: -0.16s; }
.frauat-loading span:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ==========================================================================
   QUOTES - ELEGANT STYLE
   ========================================================================== */

.wp-block-quote {
    position: relative;
    padding-left: 2rem;
    border-left: none !important;
}

.wp-block-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 4rem;
    line-height: 1;
    background: var(--gradient-rose);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: Georgia, serif;
}

.wp-block-pullquote {
    border: none !important;
    position: relative;
}

.wp-block-pullquote::before,
.wp-block-pullquote::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-rose);
    border-radius: 2px;
}

.wp-block-pullquote::before { top: 0; }
.wp-block-pullquote::after { bottom: 0; }

/* ==========================================================================
   SEPARATOR - DECORATIVE
   ========================================================================== */

.wp-block-separator {
    border: none !important;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--wp--preset--color--accent-6), transparent);
}

.wp-block-separator.is-style-dots::before {
    background: var(--gradient-rose);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   POST META - MODERN STYLE
   ========================================================================== */

.wp-block-post-date,
.wp-block-post-author-name {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.wp-block-post-date::before {
    content: '📅';
    font-size: 0.8em;
    margin-right: 0.25rem;
}

/* ==========================================================================
   AUTHOR BIO - MODERN CARD
   ========================================================================== */

.frauat-author-bio {
    background: linear-gradient(135deg, var(--wp--preset--color--accent-5) 0%, white 100%);
    border-radius: 20px;
    border: 1px solid rgba(219, 112, 147, 0.1);
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--ease-out-expo);
}

.frauat-author-bio:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ==========================================================================
   TABLET STYLES (min-width: 600px)
   ========================================================================== */

@media (min-width: 600px) {
    .frauat-footer .wp-block-columns {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .frauat-footer .wp-block-column {
        flex-basis: 50% !important;
    }
    
    .frauat-footer .frauat-footer-main {
        flex-basis: 100% !important;
    }
    
    .wp-block-post-terms a {
        padding: 0.3rem 0.875rem;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   DESKTOP STYLES (min-width: 960px)
   ========================================================================== */

@media (min-width: 960px) {
    .frauat-footer .wp-block-columns {
        flex-wrap: nowrap;
    }
    
    .frauat-footer .frauat-footer-main {
        flex-basis: 40% !important;
    }
    
    .frauat-footer .frauat-footer-nav,
    .frauat-footer .frauat-footer-legal {
        flex-basis: 30% !important;
    }
    
    .frauat-footer .wp-block-column {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   LARGE DESKTOP STYLES (min-width: 1200px)
   ========================================================================== */

@media (min-width: 1200px) {
    .frauat-header {
        padding-top: var(--wp--preset--spacing--30);
        padding-bottom: var(--wp--preset--spacing--30);
    }
}

/* ==========================================================================
   PAGE TRANSITIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-block-query > .wp-block-post-template > li {
    animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.wp-block-query > .wp-block-post-template > li:nth-child(1) { animation-delay: 0.1s; }
.wp-block-query > .wp-block-post-template > li:nth-child(2) { animation-delay: 0.2s; }
.wp-block-query > .wp-block-post-template > li:nth-child(3) { animation-delay: 0.3s; }
.wp-block-query > .wp-block-post-template > li:nth-child(4) { animation-delay: 0.4s; }
.wp-block-query > .wp-block-post-template > li:nth-child(5) { animation-delay: 0.5s; }
.wp-block-query > .wp-block-post-template > li:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .wp-block-navigation,
    .wp-block-search,
    .frauat-header,
    .frauat-footer,
    .reading-progress,
    .frauat-blob,
    .frauat-decoration {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    body::before {
        display: none;
    }
    
    .frauat-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reading-progress,
    .frauat-blob,
    .frauat-decoration-circle {
        display: none;
    }
}

/* ==========================================================================
   HERO SECTION - MOBILE FIRST
   ========================================================================== */

/* Mobile: Stack layout, centered */
.frauat-hero > .wp-block-group {
    flex-direction: column;
    text-align: center;
    gap: var(--wp--preset--spacing--30);
}

.frauat-hero > .wp-block-group > .wp-block-group {
    flex-basis: 100% !important;
    max-width: 100%;
}

.frauat-hero .wp-block-heading {
    text-align: center;
}

.frauat-hero .wp-block-buttons {
    justify-content: center;
}

.frauat-hero-illustration {
    display: flex;
    justify-content: center;
}

.frauat-hero-illustration svg {
    max-width: 180px;
}

/* Tablet and up: Side by side */
@media (min-width: 768px) {
    .frauat-hero > .wp-block-group {
        flex-direction: row;
        text-align: left;
    }
    
    .frauat-hero > .wp-block-group > .wp-block-group:first-child {
        flex-basis: 60% !important;
    }
    
    .frauat-hero > .wp-block-group > .wp-block-group:last-child {
        flex-basis: 35% !important;
    }
    
    .frauat-hero .wp-block-heading {
        text-align: left;
    }
    
    .frauat-hero .wp-block-buttons {
        justify-content: flex-start;
    }
    
    .frauat-hero-illustration {
        justify-content: flex-end;
    }
    
    .frauat-hero-illustration svg {
        max-width: 280px;
    }
}

/* ==========================================================================
   HIGH CONTRAST MODE
   ========================================================================== */

@media (prefers-contrast: high) {
    .frauat-card {
        border: 2px solid var(--wp--preset--color--contrast);
        box-shadow: none;
    }
    
    .wp-block-post-terms a {
        border: 2px solid currentColor;
    }
    
    .wp-block-button__link {
        box-shadow: none;
    }
    
    :focus-visible {
        outline-width: 3px;
    }
}
