/* assets/frontend.css */

.pti-widget-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 400px;
    margin: 0 auto;
}

/* Header */
.pti-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pti-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pti-date-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
}

.pti-arrow {
    cursor: pointer;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.pti-arrow:hover {
    opacity: 1;
}

.pti-date {
    font-size: 16px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* Temperature */
.pti-temperature {
    text-align: center;
    margin: 25px 0;
}

.pti-temp-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
}

.pti-temp-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}

.pti-temp-col:first-child {
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.pti-temp-label {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.pti-temp-value {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

/* Weather Icon */
.pti-icon-weather {
    text-align: center;
    margin: 30px 0;
}

.pti-icon-large {
    width: 80px;
    height: 80px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: brightness(0) invert(1);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Description */
.pti-description {
    text-align: center;
    font-size: 18px;
    margin: 20px 0 5px 0;
    padding: 0;
    font-weight: 600;
    line-height: 1.4;
}

/* Wind and Wave Info */
.pti-wind-info,
.pti-wave-info {
    margin: 0;
    padding: 10px 15px;
    background: transparent;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.pti-wind-info strong,
.pti-wave-info strong {
    display: inline;
    font-size: 13px;
    font-weight: 700;
    margin-right: 4px;
}

/* Next Days Forecast */
.pti-forecast-next {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pti-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.pti-next-days {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.pti-next-day {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.3s, background 0.3s;
}

.pti-next-day:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.pti-next-date {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
}

.pti-next-icon {
    margin: 10px 0;
}

.pti-icon-small {
    width: 40px;
    height: 40px;
    display: inline-block;
    filter: brightness(0) invert(1);
}

.pti-next-temp {
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 480px) {
    .pti-widget-container {
        padding: 20px;
    }

    .pti-title {
        font-size: 20px;
    }

    .pti-temp-value {
        font-size: 56px;
    }

    .pti-temp-label {
        font-size: 14px;
    }

    .pti-temp-col {
        padding: 10px 15px;
    }

    .pti-icon-large {
        width: 60px;
        height: 60px;
    }

    .pti-next-days {
        flex-direction: column;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .pti-widget-container {
        /* Sem estilos adicionais para dark mode */
    }
}

/* Loading state */
.pti-widget-loading {
    text-align: center;
    padding: 40px;
}

.pti-widget-loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error state */
.pti-widget-error {
    text-align: center;
    padding: 30px;
    background: rgba(255, 67, 54, 0.1);
    border: 1px solid rgba(255, 67, 54, 0.3);
    border-radius: 8px;
    color: #ff4336;
}