/*
Theme Name: illes.es - Tema Balear
Theme URI: https://illes.es
Description: Tema oficial per blogs de les Illes Balears
Author: illes.es
Author URI: https://illes.es
Template: twentytwentyfour
Version: 1.0.0
License: GPL v2
Text Domain: illes
*/

/* Variables de colores por isla */
:root {
    --color-mallorca: #667eea;
    --color-menorca: #f5576c;
    --color-eivissa: #4facfe;
    --color-formentera: #43e97b;
    --color-mar: #0066cc;
    --color-arena: #f5f5dc;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
}

/* Header personalizado illes.es */
.illes-header {
    background: linear-gradient(135deg, var(--color-mar) 0%, #004499 100%);
    color: white;
    padding: 0;
    position: relative;
}

.illes-header-bar {
    background: rgba(0,0,0,0.2);
    padding: 8px 20px;
    font-size: 0.85em;
    text-align: center;
}

.illes-header-bar a {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
}

.illes-header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.illes-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.illes-logo {
    font-size: 2.5em;
}

.illes-brand-text h1 {
    font-size: 1.8em;
    margin: 0;
    font-weight: 700;
}

.illes-brand-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9em;
}

/* Navegación */
.illes-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.illes-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.illes-nav a:hover {
    opacity: 1;
}

/* Contenido principal */
.illes-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Grid de posts tipo WordPress */
.illes-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.illes-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.illes-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.illes-post-image {
    height: 200px;
    background: linear-gradient(135deg, var(--color-mallorca), #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
}

.illes-post-image.menorca {
    background: linear-gradient(135deg, var(--color-menorca), #f093fb);
}

.illes-post-image.eivissa {
    background: linear-gradient(135deg, var(--color-eivissa), #00f2fe);
}

.illes-post-image.formentera {
    background: linear-gradient(135deg, var(--color-formentera), #38f9d7);
}

.illes-post-content {
    padding: 25px;
}

.illes-post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: #64748b;
    margin-bottom: 12px;
}

.illes-post-title {
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.illes-post-title a {
    color: #1e293b;
    text-decoration: none;
}

.illes-post-title a:hover {
    color: var(--color-mar);
}

.illes-post-excerpt {
    color: #64748b;
    line-height: 1.7;
}

/* Sidebar widgets */
.illes-sidebar {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.illes-widget {
    margin-bottom: 30px;
}

.illes-widget h3 {
    font-size: 1.1em;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Widget de isla */
.illes-isla-widget {
    background: linear-gradient(135deg, var(--color-mallorca), #764ba2);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.illes-isla-widget.menorca {
    background: linear-gradient(135deg, var(--color-menorca), #f093fb);
}

.illes-isla-widget.eivissa {
    background: linear-gradient(135deg, var(--color-eivissa), #00f2fe);
}

.illes-isla-widget.formentera {
    background: linear-gradient(135deg, var(--color-formentera), #38f9d7);
}

.illes-isla-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.illes-isla-name {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Footer */
.illes-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 50px 20px;
    margin-top: 80px;
}

.illes-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.illes-footer h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.illes-footer a {
    color: #64748b;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.illes-footer a:hover {
    color: white;
}

.illes-footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid #334155;
    text-align: center;
}

/* Anuncios */
.illes-ad {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    border-radius: 8px;
}

.illes-ad-header {
    background: var(--color-mar);
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 968px) {
    .illes-header-main {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .illes-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .illes-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .illes-footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .illes-brand-text h1 {
        font-size: 1.4em;
    }
    
    .illes-footer-content {
        grid-template-columns: 1fr;
    }
}