/* Top Priority Features - Vrata Countdown, Monthly Block, Paran Reminder */

/* Today's Bangla Date Section */
#todayBanglaDate {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    color: white;
    text-align: center;
}

.today-bangla-date-header h3 {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.today-bangla-date-content {
    padding: 8px 0;
}

.bangla-date-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.date-label {
    font-size: 0.8em;
    opacity: 0.9;
    font-weight: 500;
}

.date-value {
    font-size: 1.1em;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    min-height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-value .fa-spinner {
    font-size: 0.9em;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Vrata Countdown */
#vrataCountdown {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    color: white;
    text-align: center;
}

.countdown-header {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.countdown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1.3;
}

.countdown-main-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.countdown-days {
    font-size: 2em;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    line-height: 1;
}

.countdown-text {
    font-size: 0.9em;
    opacity: 0.9;
}

.countdown-vrata-type {
    font-size: 1em;
    font-weight: bold;
    color: #ffeb3b;
}

.countdown-vrata-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    margin: 2px 0;
    text-align: center;
}

.countdown-date {
    font-size: 0.8em;
    opacity: 0.85;
    margin-top: 2px;
    text-align: center;
}

.countdown-no-vrata {
    font-size: 0.95em;
    opacity: 0.8;
    padding: 8px;
}

/* Monthly Block */
#monthlyBlock {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Mobile collapsible functionality */
@media (max-width: 768px) {
    #monthlyBlock {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    #monthlyBlock.collapsed {
        padding: 15px 20px !important;
        min-height: 60px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    #monthlyBlock.collapsed .block-content {
        display: none !important;
    }
    
    #monthlyBlock.collapsed .block-header::after {
        content: '▼' !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 1.2em !important;
        transition: transform 0.3s ease !important;
    }
    
    #monthlyBlock.expanded .block-header::after {
        content: '▲' !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 1.2em !important;
        transition: transform 0.3s ease !important;
    }
    
    #monthlyBlock:not(.collapsed):not(.expanded) .block-header::after {
        content: '▼' !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 1.2em !important;
        opacity: 0.7 !important;
    }
}

/* Mobile compact layout for top features */
@media (max-width: 480px) {
    .top-feature {
        min-height: 80px !important;
    }
    
    .countdown-header {
        font-size: 1em !important;
        margin-bottom: 6px !important;
    }
    
    .countdown-days {
        font-size: 2.2em !important;
        min-width: 45px !important;
    }
    
    .countdown-text {
        font-size: 0.9em !important;
    }
    
    .countdown-vrata {
        font-size: 1.1em !important;
    }
    
    .countdown-name {
        font-size: 0.95em !important;
    }
    
    .reminder-header {
        font-size: 1em !important;
        margin-bottom: 6px !important;
    }
    
    .reminder-time {
        font-size: 1.3em !important;
        font-weight: bold !important;
    }
    
    .reminder-desc {
        font-size: 0.85em !important;
        margin-top: 2px !important;
    }
    
    .block-header {
        font-size: 1em !important;
        margin-bottom: 6px !important;
    }
    
    .block-content {
        font-size: 0.85em !important;
    }
}

.block-header {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.block-content {
    display: grid;
    gap: 8px;
}

.block-month {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    color: #ffeb3b;
}

.block-paran-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px;
}

.block-paran-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.paran-day {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffeb3b;
    min-width: 30px;
}

.paran-name {
    font-size: 0.9em;
    font-weight: 500;
    flex: 1;
    text-align: left;
}

.paran-date {
    font-size: 0.8em;
    opacity: 0.8;
    min-width: 60px;
    text-align: right;
}

.block-no-paran {
    text-align: center;
    padding: 15px;
    font-size: 1em;
    opacity: 0.8;
}

.block-instructions {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Mobile collapsible functionality */
@media (max-width: 768px) {
    #monthlyBlock {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    #monthlyBlock.collapsed {
        padding: 15px 20px !important;
        min-height: 60px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    #monthlyBlock.collapsed .block-content {
        display: none !important;
    }
    
    #monthlyBlock.collapsed .block-header::after {
        content: '▼' !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 1.2em !important;
        transition: transform 0.3s ease !important;
    }
    
    #monthlyBlock.expanded .block-header::after {
        content: '▲' !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 1.2em !important;
        transition: transform 0.3s ease !important;
    }
    
    #monthlyBlock:not(.collapsed):not(.expanded) .block-header::after {
        content: '▼' !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 1.2em !important;
        opacity: 0.7 !important;
    }
}

/* Paran Reminder */
#paranReminder {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
    color: white;
}

.reminder-header {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.reminder-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reminder-icon {
    font-size: 2.5em;
    text-align: center;
    min-width: 50px;
}

.reminder-text {
    flex: 1;
    min-width: 0;
}

.reminder-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffeb3b;
    margin-bottom: 3px;
}

.reminder-date {
    font-size: 0.9em;
    opacity: 0.8;
}

.reminder-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.reminder-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    color: white;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.reminder-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.reminder-no-paran {
    text-align: center;
    padding: 20px;
    font-size: 1.1em;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-content {
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 6px;
    }
    
    .countdown-days {
        font-size: 1.8em;
        min-width: 40px;
    }
    
    .countdown-text {
        font-size: 0.8em;
    }
    
    .countdown-vrata {
        font-size: 0.9em;
    }
    
    .countdown-name {
        font-size: 0.8em;
    }
    
    .reminder-content {
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .reminder-icon {
        font-size: 1.5em;
        min-width: 30px;
    }
    
    .reminder-name {
        font-size: 1em;
    }
    
    .reminder-date {
        font-size: 0.8em;
    }
    
    .reminder-actions {
        flex-direction: row;
        justify-content: center;
        gap: 4px;
    }
    
    .reminder-btn {
        padding: 4px 8px;
        font-size: 0.75em;
    }
    
    .block-paran-list {
        grid-template-columns: 1fr;
    }
    
    .block-paran-item {
        justify-content: space-between;
        padding: 6px 8px;
    }
    
    .paran-day {
        font-size: 1.1em;
        min-width: 25px;
    }
    
    .paran-name {
        font-size: 0.85em;
    }
    
    .paran-date {
        font-size: 0.75em;
        min-width: 50px;
    }
    
    .block-instructions {
        font-size: 0.8em;
    }
    
    /* Enhanced mobile experience for monthly block */
    .top-features-container {
        grid-template-columns: 1fr;
        margin: 8px;
        padding: 0 4px;
        gap: 8px;
    }
    
    .top-feature {
        min-height: auto;
    }
    
    /* Monthly block mobile specific styles */
    #monthlyBlock {
        margin: 8px 0;
    }
    
    #monthlyBlock.collapsed {
        min-height: 60px;
        display: flex;
        align-items: center;
    }
    #monthlyBlock.collapsed .block-header {
        margin-bottom: 0;
        margin-right: 30px; /* Space for arrow */
    }
}
