/* --- CALENDAR BUTTONS DESIGN SYSTEM --- */
.calendar-section {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.calendar-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.calendar-title i {
    color: #4285f4;
    font-size: 1rem;
}

.btn-group {
    display: flex;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #1e1e24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.calendar-btn {
    flex: 1;
    height: 48px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 10px;
}

.calendar-btn:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Individual Brand Styles */
.calendar-btn.google:hover {
    background: #4285f4;
    color: #fff;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.calendar-btn.apple:hover {
    background: #333;
    color: #fff;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.calendar-btn.outlook:hover {
    background: #0078d4;
    color: #fff;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.calendar-btn:hover {
    z-index: 2;
    transform: scale(1.02);
}

.calendar-btn:active {
    transform: scale(0.98);
}

/* --- FEED PAGE STYLES --- */
* {
    box-sizing: border-box;
}

body {
    background: #18181b;
    min-height: 100vh;
    padding-bottom: 80px; /* Space for mobile bottom nav */
}

@media (min-width: 769px) {
    body {
        padding-top: 80px; /* Space for desktop top nav */
        padding-bottom: 0;
    }
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem 2rem 1rem !important;
    width: 100% !important;
}

.feed-filters {
    background: #23232a;
    border-radius: 1.5rem;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-btn {
    background: #2a2a30;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background: #333;
    color: #fff;
}

.filter-btn.active {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

#feed-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
    gap: 2rem !important;
    width: 100% !important;
}

.feed-card {
    background: #23232a !important;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.feed-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.feed-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.feed-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.feed-info {
    flex: 1;
    min-width: 0;
}

.feed-info h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.feed-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 2px;
}

.feed-tiempo-container {
    margin-left: auto;
}

.tiempo-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tiempo-hoy { background: #ef4444; color: #fff; }
.tiempo-manana { background: #f59e0b; color: #fff; }
.tiempo-semana { background: #10b981; color: #fff; }
.tiempo-mes { background: #3b82f6; color: #fff; }
.tiempo-futuro { background: #6366f1; color: #fff; }

.feed-image-section {
    width: 100%;
    padding: 0 1rem;
    background: #1a1a1a;
}

.feed-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feed-card:hover .feed-image img {
    transform: scale(1.08);
}

.feed-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.feed-image .no-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/logo.png') center top/120px no-repeat;
    opacity: 0.1;
    filter: grayscale(100%);
}

.feed-image .no-image .icon-overlay {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.15);
    font-size: 2.5rem;
    text-align: center;
}

.feed-image .no-image .icon-overlay small {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.feed-description-section {
    padding: 1.5rem;
}

.feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.meta-item i {
    color: #4fc3f7;
}

.direccion-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.direccion-link:hover {
    color: #4fc3f7;
    border-bottom-color: #4fc3f7;
}

.feed-actions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    text-decoration: none;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.4);
    filter: brightness(1.1);
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 768px) {
    #feed-list { grid-template-columns: 1fr !important; }
    .feed-image { height: 250px; }
}

@media (max-width: 480px) {
    .feed-header { padding: 1rem; }
    .feed-avatar { width: 40px; height: 40px; }
    .feed-info h3 { font-size: 1rem; }
}

/* Specific button colors for instant recognition */
.calendar-btn.google .calendar-btn-icon i { color: #ea4335; } /* We could also use multi colored if we want but FA is monochrome */
/* Weather Widget */
.weather-widget {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}

.weather-widget:hover {
    background: rgba(255, 255, 255, 0.08);
}

.weather-icon {
    font-size: 2rem;
    color: #ffd700;
    width: 40px;
    text-align: center;
}

.weather-info {
    flex: 1;
}

.weather-temp {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: capitalize;
}

.weather-loading {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}


.weather-main-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-extra {
    font-size: 0.9rem;
    color: #60a5fa; /* Light blue for rain */
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(96, 165, 250, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.weather-error {
    font-size: 0.85rem;
    color: #ef4444; 
}
