/* 
 * CSS BASE do Plugin de Previsão do Tempo
 * NOTA: Este arquivo NÃO usa !important
 * As cores customizadas serão aplicadas via CSS inline dinâmico
 */

/* Container principal */
.ptr-weather-container {
    max-width: 400px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Wrapper - CORES SERÃO SOBRESCRITAS */
.ptr-weather-wrapper {
    position: relative;
    min-height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Cards de previsão */
.ptr-weather-card {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.ptr-weather-card.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Layout compacto */
.ptr-weather-card.compact .ptr-details {
    display: none;
}

/* Cabeçalho */
.ptr-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.ptr-city {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: white;
}

.ptr-date {
    font-size: 0.9em;
    opacity: 0.8;
    color: rgba(255,255,255,0.8);
}

/* Corpo */
.ptr-body {
    text-align: center;
}

.ptr-main-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    gap: 15px;
}

.ptr-weather-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Fallback emoji para ícones */
.ptr-weather-emoji {
    font-size: 60px;
    line-height: 80px;
    text-align: center;
    width: 80px;
    height: 80px;
}

.ptr-icon-fallback {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.ptr-temp {
    font-size: 3em;
    font-weight: 300;
    line-height: 1;
    color: white;
}

.ptr-temp-value {
    color: white;
}

.ptr-temp-unit {
    font-size: 0.5em;
    vertical-align: super;
    color: white;
}

.ptr-description {
    font-size: 1.2em;
    margin: 10px 0 20px;
    text-transform: capitalize;
    color: white;
}

/* Detalhes */
.ptr-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.ptr-detail {
    text-align: center;
}

.ptr-detail-label {
    display: block;
    font-size: 0.8em;
    opacity: 0.8;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.8);
}

.ptr-detail-value {
    font-size: 1.1em;
    font-weight: 600;
    color: white;
}

/* Controles */
.ptr-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.ptr-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.2);
}

.ptr-controls button:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.ptr-controls button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.ptr-dots {
    display: flex;
    gap: 8px;
}

.ptr-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ptr-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Responsividade */
@media (max-width: 480px) {
    .ptr-weather-container {
        max-width: 100%;
    }
    
    .ptr-main-info {
        flex-direction: column;
        text-align: center;
    }
    
    .ptr-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .ptr-city {
        font-size: 1.2em;
    }
    
    .ptr-temp {
        font-size: 2.5em;
    }
    
    .ptr-weather-wrapper {
        padding: 15px;
    }
}