/**
 * public-theme.css
 * Tema Verde para área pública
 * Requiere: _variables.css, _animations.css, _content-base.css (cargados vía importmap)
 */

:root {
    /* === COLORES PRINCIPALES - VERDE MATERIAL === */
    --theme-primary: #43A047;
    --theme-primary-dark: #2E7D32;
    --theme-primary-light: #66BB6A;
    --theme-primary-lighter: #81C784;
    
    /* === COLORES SECUNDARIOS === */
    --theme-secondary: #388E3C;
    --theme-accent: #43A047;
    --theme-accent-dark: #2E7D32;
    
    /* === FONDOS === */
    --theme-bg: #f8fff8;
    --theme-bg-gradient: linear-gradient(170deg, #f8fff8 0%, #eafaea 100%);
    --theme-card: #ffffff;
    --theme-light-bg: #E8F5E9;
    --theme-lighter-bg: #C8E6C9;
    
    /* === FONDOS RADIALES PARA BODY === */
    --theme-radial-1: rgba(67, 160, 71, 0.12);
    --theme-radial-2: rgba(46, 125, 50, 0.08);
    
    /* === BORDES === */
    --theme-border-color: #C8E6C9;
    --theme-border-dark: #A5D6A7;
    
    /* === TEXTO === */
    --theme-text-dark: #2E7D32;
    --theme-text-muted: #388E3C;
    
    /* === SOMBRAS CON TONO VERDE === */
    --theme-shadow-sm: 0 2px 8px rgba(67, 160, 71, 0.08);
    --theme-shadow-md: 0 4px 16px rgba(67, 160, 71, 0.12);
    --theme-shadow-lg: 0 8px 24px rgba(67, 160, 71, 0.15);
    --theme-shadow-hover: 0 6px 20px rgba(67, 160, 71, 0.18);
}

/* === ESTILOS ESPECÍFICOS PARA ÁREA PÚBLICA === */

body {
    background: #f8fafc;
}

.public-container {
    max-width: 1200px;
    margin: 20px auto 50px;
    padding: 20px;
    font-family: system-ui, -apple-system, sans-serif;
}

.public-header {
    text-align: center;
    margin-bottom: 50px;
}

.public-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 16px;
}

.public-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--theme-primary-dark);
}

.public-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    padding: 30px;
    border: 1px solid var(--theme-border-color);
    border-radius: 8px;
    text-align: left;
    background: white;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--theme-shadow-hover);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card h3 {
    color: var(--theme-primary-dark);
    margin: 15px 0 10px;
}

.card p {
    color: #666;
    margin: 15px 0;
}

.card-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--theme-primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s;
}

.card-button:hover {
    background: var(--theme-primary-dark);
    color: white;
    text-decoration: none;
}

.legal-links {
    margin-top: 15px;
}

.legal-link {
    display: block;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid var(--theme-primary);
    color: var(--theme-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.legal-link:hover {
    background: var(--theme-light-bg);
    text-decoration: none;
    color: var(--theme-primary-dark);
}

.features-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.features-list li {
    padding: 5px 0;
}

.language-selector {
    margin-top: 40px;
    padding: 15px;
    text-align: center;
}

.language-selector--top {
    margin-top: 0;
    padding: 0;
    text-align: right;
}

.language-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.globe-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.language-select {
    padding: 10px 35px 10px 15px;
    font-size: 1rem;
    border: 2px solid var(--task-primary);
    border-radius: 25px;
    background: white;
    color: var(--task-darker);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232E7D32' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
    min-width: 180px;
}

.language-select:hover {
    border-color: var(--task-darker);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
    transform: translateY(-2px);
}

.language-select:focus {
    outline: none;
    border-color: var(--task-darker);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.language-select option {
    padding: 10px;
    font-size: 1rem;
}

.public-footer {
    margin-top: 50px;
    padding: 20px;
    text-align: center;
    color: #666;
    border-top: 1px solid var(--theme-border-color);
}

@media (max-width: 768px) {
    .public-top-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
    }

    .language-selector--top {
        text-align: right;
    }

    .language-select {
        min-width: 150px;
        padding: 9px 30px 9px 12px;
        font-size: 0.95rem;
    }
}
