/*
Theme Name: OlafMotion
Theme URI: https://olafmotion.com
Author: OlafMotion Team
Author URI: https://olafmotion.com
Description: Profesjonalny motyw WordPress z systemem subskrypcji dla treści video - Dark Theme
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: olafmotion
Tags: dark-theme, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   CSS VARIABLES - Blue Gradient Theme
   ======================================== */
:root {
    --primary-blue: #5B8DEE;
    --primary-blue-hover: #4A7DD9;
    --blue-light: #A8C7FA;
    --blue-lighter: #D4E4FF;
    --white: #ffffff;
    --white-95: #f8f9fb;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;
    --white-10: rgba(255, 255, 255, 0.1);
    --white-5: rgba(255, 255, 255, 0.05);
    --black-60: rgba(0, 0, 0, 0.6);
    --blue-glow: rgba(91, 141, 238, 0.3);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.7s ease;
    --gradient-bg: linear-gradient(135deg, #A8C7FA 0%, #D4E4FF 50%, #ffffff 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(212,228,255,0.95) 100%);
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gradient-bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

h1 { font-size: 6rem; }
h2 { font-size: 4rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-blue-hover);
}

strong {
    font-weight: 700;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.text-gray {
    color: var(--gray-500);
}

.text-blue {
    color: var(--primary-blue);
}

.gradient-text {
    background: linear-gradient(to right, var(--primary-blue), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uppercase {
    text-transform: uppercase;
}

.font-black {
    font-weight: 900;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(91, 141, 238, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(91, 141, 238, 0.5);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.btn-ghost {
    background-color: transparent;
    color: var(--gray-700);
}

.btn-ghost:hover {
    background-color: rgba(91, 141, 238, 0.1);
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 2rem 4rem;
    font-size: 1.125rem;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--white-10);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-logo img {
    height: 2.5rem;
    width: auto;
    transition: var(--transition-fast);
}

.site-logo:hover img {
    opacity: 0.8;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    margin: 0;
}

.primary-menu a {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    padding: 0.5rem 0;
    position: relative;
}

.primary-menu a:hover,
.primary-menu .current-menu-item a {
    color: var(--primary-yellow);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .primary-menu {
        display: none;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--black);
    padding-top: 5rem;
}

/* Grid Pattern Background */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, var(--white-10) 1px, transparent 1px),
        linear-gradient(to bottom, var(--white-10) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.2;
    z-index: 1;
}

/* Gradient Overlay */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--black));
    z-index: 2;
}

/* Glow Effect */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--primary-yellow);
    filter: blur(150px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1100px;
    padding: 0 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--white-5);
    border: 1px solid var(--white-10);
    border-radius: 9999px;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: clamp(3rem, 10vw, 9rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--gray-400);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   PRODUCT GRID
   ======================================== */
.product-grid-section {
    padding: 8rem 0;
    background-color: var(--black);
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-400);
    max-width: 40rem;
}

/* ========================================
   VIDEO GRID - LARGE FORMAT
   ======================================== */
.video-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.video-card-large {
    position: relative;
    background: var(--white);
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(91, 141, 238, 0.15);
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
}

.video-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(91, 141, 238, 0.25);
}

.video-card-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gray-100);
    border-radius: 16px 16px 0 0;
}

.video-embed-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-lighter) 0%, var(--white) 100%);
}

.video-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(212, 228, 255, 0.95) 40%,
        transparent 100%
    );
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card-large:hover .video-card-gradient {
    opacity: 1;
    transform: translateY(0);
}

.video-card-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    margin: 0;
}

.video-card-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.video-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    z-index: 10;
}

@media (max-width: 1024px) {
    .video-grid-large {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .video-card-gradient {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .video-card-title {
        font-size: 1.25rem;
    }
}

/* ========================================
   PRODUCT GRID - LEGACY
   ======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    position: relative;
    background-color: var(--gray-900);
    border: 1px solid var(--white-10);
    overflow: hidden;
    transition: var(--transition-normal);
    group: hover;
}

.product-card:hover {
    border-color: var(--primary-yellow);
}

.product-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-card-image img {
    transform: scale(1.1);
}

.product-card-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--black-60);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-yellow);
    color: var(--black);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
}

.product-card-content {
    padding: 1.5rem;
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card:hover .product-card-title {
    color: var(--primary-yellow);
}

.product-card-description {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--white-10);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.product-arrow {
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.product-card:hover .product-arrow {
    color: var(--white);
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-section {
    padding: 8rem 0;
    background-color: var(--black);
    border-top: 1px solid var(--white-5);
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 2rem;
    border: 1px solid var(--white-10);
    background-color: rgba(17, 17, 17, 0.5);
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--primary-yellow);
    background-color: rgba(242, 190, 34, 0.05);
}

.pricing-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-yellow);
    color: var(--black);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 1rem;
}

.pricing-card-header {
    margin-bottom: 2rem;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.pricing-description {
    font-size: 0.875rem;
    color: var(--gray-400);
    min-height: 2.5rem;
}

.pricing-price {
    margin-bottom: 2rem;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
}

.pricing-period {
    color: var(--gray-500);
    margin-left: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-300);
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-yellow);
    font-weight: 700;
    flex-shrink: 0;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background-color: var(--black);
    border-top: 1px solid var(--white-10);
    padding: 4rem 0 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-widget h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-widget a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--white-10);
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* ========================================
   DASHBOARD
   ======================================== */
.dashboard-container {
    min-height: 100vh;
    padding-top: 5rem;
}

.dashboard-sidebar {
    background-color: var(--gray-900);
    border-right: 1px solid var(--white-10);
    padding: 2rem 0;
    min-height: calc(100vh - 5rem);
}

.dashboard-menu {
    list-style: none;
}

.dashboard-menu li {
    margin-bottom: 0.5rem;
}

.dashboard-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-400);
    font-weight: 500;
    transition: var(--transition-fast);
}

.dashboard-menu a:hover,
.dashboard-menu a.active {
    background-color: var(--white-5);
    color: var(--primary-yellow);
}

.dashboard-content {
    padding: 2rem;
}

.dashboard-card {
    background-color: var(--gray-900);
    border: 1px solid var(--white-10);
    padding: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--gray-900);
    border: 1px solid var(--white-10);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(242, 190, 34, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 3rem; }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}

/* ========================================
   WORDPRESS CORE STYLES
   ======================================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.sticky {
    /* Sticky post styles */
}

.bypostauthor {
    /* Post author styles */
}
