/*
Theme Name: Clock FM Professional
Theme URI: https://clockfm.com
Author: Clock FM Team
Description: Tema WordPress professionale per Clock FM con Web TV, caricamento video manuale, categorie preimpostate e grafica moderna dark mode.
Version: 2.0.0
Text Domain: clock-fm
*/

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #14141d;
    --bg-card: #1e1e2d;
    --accent-primary: #ff2a5f;
    --accent-gradient: linear-gradient(135deg, #ff2a5f 0%, #7928ca 100%);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: #2d2d42;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
.site-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-navigation a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at top right, rgba(121, 40, 202, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(255, 42, 95, 0.15), transparent 50%),
                var(--bg-secondary);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.hero-section h2 {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}

.hero-section p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Categories Bar */
.categories-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.category-chip {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.category-chip:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 42, 95, 0.1);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.video-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 42, 95, 0.4);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-info {
    padding: 20px;
}

.video-meta {
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.video-title a {
    color: var(--text-main);
    text-decoration: none;
}

.video-title a:hover {
    color: var(--accent-primary);
}

.video-date {
    color: var(--text-muted);
    font-size: 13px;
}

/* Player Container */
.player-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.player-container iframe,
.player-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}
