/*
Theme Name: Orologi di Classe Podcast
Description: Tema WordPress minimalista per podcast di orologeria. Design ispirato a orologidiclasse.com con player integrato e funzionalità SEO native.
Author: Orologi di Classe
Version: 1.0
Text Domain: orologi-podcast
*/

/* === RESET E BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    font-size: 16px;
}

/* === TIPOGRAFIA === */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #222;
}

h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: #222;
}

h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    color: #333;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: #A87C51;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8B6A42;
    text-decoration: underline;
}

/* === LAYOUT PRINCIPALE === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.site-header {
    background: #000;
    color: #fff;
    padding: 20px 0;
    border-bottom: 3px solid #A87C51;
}

.site-header h1 {
    color: #fff;
    margin: 0;
    font-size: 2rem;
}

.site-header h1 a {
    color: #fff;
    text-decoration: none;
}

.site-header h1 a:hover {
    color: #A87C51;
}

.site-tagline {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* === GRID EPISODI (HOMEPAGE) === */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.episode-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.episode-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #222;
}

.episode-title a {
    color: #222;
    text-decoration: none;
}

.episode-title a:hover {
    color: #A87C51;
}

.episode-meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* === PLAYER AUDIO === */
.audio-player {
    width: 100%;
    margin: 20px 0;
}

.audio-player audio {
    width: 100%;
    height: 40px;
    background: #000;
    border-radius: 5px;
}

/* === PLAYER EMBED (da copiare nel blog) === */
.embed-player {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #000;
    color: #A87C51;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border: 2px solid #A87C51;
}

.embed-player audio {
    width: 100%;
    height: 35px;
}

.embed-player .episode-info {
    color: #A87C51;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.embed-copyright {
    margin-top: 8px;
    text-align: left;
}

.embed-copyright small {
    color: #999;
    font-size: 0.75rem;
    line-height: 1;
}

.embed-copyright a {
    color: #A87C51;
    text-decoration: none;
}

.embed-copyright a:hover {
    text-decoration: underline;
}

/* === DISCLAIMER AI === */
.ai-disclaimer {
    margin-top: 8px;
    text-align: center;
}

.ai-disclaimer small {
    color: #999;
    font-size: 0.75rem;
    font-style: italic;
}

.ai-disclaimer-single {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 4px;
    border-left: 3px solid #ff9800;
}

.ai-disclaimer-single small {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
    display: block;
}

/* === PAGINA SINGOLO EPISODIO === */
.single-episode {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.episode-title {
    font-size: 2.2rem;
    color: #222;
}

.episode-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 30px 0;
}

.embed-code-section {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #A87C51;
}

.embed-code-section h3 {
    margin-bottom: 15px;
    color: #222;
}

.embed-code {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    margin-bottom: 10px;
}

.copy-button {
    background: #A87C51;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.copy-button:hover {
    background: #8B6A42;
}

.article-link {
    background: #A87C51;
    color: #fff;
    padding: 15px 25px;
    border-radius: 5px;
    display: inline-block;
    margin: 20px 0;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.article-link:hover {
    background: #8B6A42;
    color: #fff;
    text-decoration: none;
}

/* === PAGINAZIONE === */
.pagination {
    text-align: center;
    margin: 50px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #A87C51;
    color: #fff;
    border-color: #A87C51;
}

.pagination .current {
    background: #A87C51;
    color: #fff;
    border-color: #A87C51;
}

/* === FOOTER === */
.site-footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 3px solid #A87C51;
}

.site-footer p {
    margin: 0;
    color: #ccc;
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .site-header h1 {
        font-size: 1.6rem;
    }

    .episodes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .episode-card {
        padding: 20px;
    }

    .episode-title {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    .single-episode {
        margin: 20px auto;
    }

    .single-episode .episode-title {
        font-size: 1.8rem;
    }

    .article-link {
        display: block;
        text-align: center;
    }

    .embed-player {
        padding: 10px;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .site-header h1 {
        font-size: 1.4rem;
    }

    .episode-title {
        font-size: 1.1rem;
    }

    .single-episode .episode-title {
        font-size: 1.5rem;
    }

    .embed-code {
        font-size: 0.75rem;
    }

    .ai-disclaimer small {
        font-size: 0.7rem;
    }

    .ai-disclaimer-single small {
        font-size: 0.75rem;
    }

    .embed-player {
        padding: 8px;
    }

    .embed-copyright small {
        font-size: 0.7rem;
    }
}
