/*
Theme Name: Typ-er Dark Purple
Theme URI: https://typer-liga.pl
Author: Typ-er
Description: Ciemny fioletowy motyw zaprojektowany specjalnie dla wtyczki Typ-er Liga. Odtwarza estetykę desktopowej aplikacji Typ-er 2026 (dark purple + fioletowe akcenty). Zawiera logo autora w nagłówku. Działa z każdą wtyczką WordPress, ale najlepiej wygląda z Typ-er Liga.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: typer-theme
Tags: dark, purple, one-column, translation-ready, custom-menu, featured-images
*/

/* === Reset & typography === */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: #fff; line-height: 1.25; margin-top: 1.2em; }
h1 { font-size: 2.2rem; } h2 { font-size: 1.6rem; color: #a78bfa; }
h3 { font-size: 1.25rem; color: #c4b5fd; }

a { color: #a78bfa; text-decoration: none; transition: color .15s ease; }
a:hover { color: #c4b5fd; }

p { margin: 0 0 1em; }

/* === Layout === */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-main { flex: 1; max-width: 1240px; margin: 0 auto; padding: 40px 24px; width: 100%; }

/* === Header === */
.site-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-bottom: 1px solid #4c1d95;
    padding: 0;
    position: sticky; top: 0; z-index: 1000;
    backdrop-filter: blur(12px);
}
.site-header-inner {
    max-width: 1240px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    flex-wrap: wrap;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo {
    width: 44px; height: 44px; border-radius: 10px;
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 22px;
    box-shadow: 0 4px 14px rgba(139, 92, 246, .35);
}
.site-logo-link { display: inline-block; line-height: 0; }
.site-logo-img {
    width: 56px; height: 56px; border-radius: 50%;
    box-shadow: 0 4px 14px rgba(139, 92, 246, .35);
    transition: transform .2s ease, box-shadow .2s ease;
    background: #fff;
}
.site-logo-link:hover .site-logo-img {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 6px 20px rgba(139, 92, 246, .5);
}
.site-title { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0; }
.site-title a { color: #fff; }
.site-description { font-size: .82rem; color: #c4b5fd; margin: 0; }

/* === Navigation === */
.main-navigation ul {
    display: flex; gap: 6px; list-style: none; margin: 0; padding: 0;
    flex-wrap: wrap;
}
.main-navigation a {
    display: inline-block; padding: 8px 14px; border-radius: 8px;
    color: #e2e8f0; font-weight: 500; font-size: 14px;
    transition: background-color .15s ease, color .15s ease;
}
.main-navigation a:hover,
.main-navigation li.current-menu-item > a {
    background: rgba(139, 92, 246, .18); color: #fff;
}
.menu-toggle {
    background: #6d28d9; color: #fff; border: none; padding: 10px 16px;
    border-radius: 8px; cursor: pointer; font-weight: 600; display: none;
}
@media (max-width: 768px) {
    .menu-toggle { display: inline-block; }
    .main-navigation { width: 100%; display: none; }
    .main-navigation.toggled { display: block; }
    .main-navigation ul { flex-direction: column; }
}

/* === Buttons === */
.wp-block-button__link,
.site button:not(.menu-toggle):not(.typer-btn):not(.button),
input[type="submit"]:not(.typer-btn) {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    color: #fff !important; padding: 10px 24px; border-radius: 8px;
    border: none; font-weight: 600; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none; display: inline-block;
}
.wp-block-button__link:hover {
    transform: translateY(-1px); box-shadow: 0 6px 16px rgba(109, 40, 217, .4);
}

/* === Content surfaces === */
.entry-content, .page .entry-content, .single .entry-content {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
@media (max-width: 768px) {
    .entry-content { padding: 20px; border-radius: 12px; }
}

.entry-title {
    font-size: 2rem; margin: 0 0 12px;
    background: linear-gradient(135deg, #a78bfa, #c4b5fd);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.entry-meta { font-size: 13px; color: #94a3b8; margin-bottom: 18px; }

/* === Forms (inputs, textarea) === */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="search"],
input[type="date"], input[type="datetime-local"], select, textarea {
    background: #0f172a; color: #e2e8f0;
    border: 1px solid #475569; border-radius: 8px;
    padding: 10px 12px; font-size: 14px;
    font-family: inherit;
}
input:focus, textarea:focus, select:focus {
    outline: none; border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .25);
}
textarea { min-height: 100px; }

/* === Tables === */
.entry-content table {
    width: 100%; border-collapse: collapse; background: #0f172a;
    border-radius: 10px; overflow: hidden; margin: 14px 0;
}
.entry-content th {
    background: rgba(139, 92, 246, .12); color: #c4b5fd;
    padding: 10px; font-weight: 700; text-align: left;
    font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
}
.entry-content td {
    padding: 10px; border-bottom: 1px solid #334155;
}
.entry-content tr:last-child td { border-bottom: none; }

/* === Hero (front page optional) === */
.typer-hero-front {
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #8b5cf6 100%);
    padding: 60px 30px; border-radius: 16px; margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(109, 40, 217, .4);
}
.typer-hero-front h1 {
    font-size: 3rem; margin: 0 0 12px;
    background: none; -webkit-text-fill-color: #fff; color: #fff;
}
.typer-hero-front p { font-size: 1.15rem; opacity: .95; margin: 0 0 20px; }
.typer-hero-front .buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.typer-hero-front .btn {
    background: #fff; color: #6d28d9 !important; padding: 12px 26px;
    border-radius: 8px; font-weight: 700;
}
.typer-hero-front .btn.outline {
    background: transparent; border: 2px solid #fff; color: #fff !important;
}

/* === Footer === */
.site-footer {
    background: #020617;
    border-top: 1px solid #334155;
    padding: 30px 24px; color: #64748b;
    font-size: 14px; text-align: center;
    margin-top: 60px;
}
.site-footer a { color: #a78bfa; }

/* === Typer plugin integration (override kontrastu dla dark mode) === */
.typer-wrap .typer-box,
.typer-wrap .typer-up-card,
.typer-wrap .typer-bet-card,
.typer-wrap .typer-compare-col,
.typer-wrap .typer-card,
.typer-wrap .typer-ranking-capture {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
.typer-wrap .typer-up-card .teams,
.typer-wrap .typer-bet-head .teams,
.typer-wrap .typer-card .val { color: #fff; }
.typer-wrap .typer-sub { color: #94a3b8; }
.typer-wrap .typer-hero {
    background: linear-gradient(135deg, #4c1d95, #6d28d9);
}
.typer-wrap .typer-table { background: #0f172a; }
.typer-wrap .typer-table th { background: rgba(139, 92, 246, .12); color: #c4b5fd; }
.typer-wrap .typer-table td { border-color: #334155; color: #e2e8f0; }
.typer-wrap .typer-table tr.typer-mine { background: rgba(139, 92, 246, .08); }
.typer-wrap .typer-round-btn { background: #334155; color: #e2e8f0; }
.typer-wrap .typer-round-btn.active { background: #6d28d9; color: #fff; }
.typer-wrap .typer-form input,
.typer-wrap .typer-form select {
    background: #0f172a; color: #e2e8f0; border-color: #475569;
}
/* Etykiety checkboxów / inputów w formularzu typowania — jasne na ciemnym tle */
.typer-wrap label,
.typer-wrap .typer-exact-row label,
.typer-wrap .typer-exact-row { color: #e2e8f0; }
.typer-wrap .typer-exact-row label { font-weight: 500; }
.typer-wrap .typer-heatmap th { background: rgba(139, 92, 246, .12); color: #c4b5fd; }
.typer-wrap .typer-heatmap td.name { background: #1e293b; color: #e2e8f0; }
.typer-wrap .typer-compare-table td.winner { background: rgba(52, 211, 153, .18); color: #6ee7b7; }
.typer-wrap .typer-bet-pill { background: rgba(255,255,255,.05); color: #e2e8f0; }

/* accessibility */
.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;
}
