/* =========================================
   Sarmormo (সারমর্ম) Premium UI & Dark Mode
   ========================================= */

/* Main Wrapper */
.sarmormo-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Kalpurush', 'SolaimanLipi', Arial, sans-serif;
    line-height: 1.7;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}
.nav-menu.bottom-nav {
    margin-top: 40px;
}
.nav-item {
    background-color: #f8fafc;
    color: #475569;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item:hover {
    background-color: #ffffff;
    color: #0f172a;
}
.nav-item.active {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-secondary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.action-divider {
    font-weight: bold;
    color: #94a3b8;
}

/* Sarmormo Card Design */
.sarmormo-card {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 50px;
    margin-top: 35px;
    border: 1px solid rgba(0,0,0,0.10);
    position: relative;
    overflow: visible !important;
}

.card-badge {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: -25px auto 20px auto;
    border: 5px solid #ffffff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}
.card-poem {
    text-align: center;
    font-style: italic;
    color: #475569;
    padding: 10px 30px 25px 30px;
    line-height: 1.8;
}
.card-poem a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px dashed #3b82f6;
}
.card-poem a:hover {
    color: #2563eb;
    border-bottom-style: solid;
}
.card-summary {
    background-color: #f8fafc;
    padding: 30px;
    border-top: 1px solid #e2e8f0;
    text-align: justify;
    color: #334155;
    line-height: 1.8;
    border-radius: 0 0 16px 16px;
}
.card-summary strong {
    color: #0c4a6e;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 8px;
    border: 1px solid #bae6fd;
}
.card-source {
    text-align: center;
    color: #64748b;
    margin-top: 15px;
    font-style: normal;
}

/* =========================================
   DARK MODE (Night Mode) Styles
   ========================================= */
body.dark-mode .sarmormo-card {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .card-badge {
    border-color: #1e293b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
body.dark-mode .card-poem {
    color: #cbd5e1;
}
body.dark-mode .card-poem a {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}
body.dark-mode .card-summary {
    background-color: #0f172a;
    color: #e2e8f0;
    border-top-color: #334155;
}
body.dark-mode .card-summary strong {
    color: #bae6fd;
    background: #075985;
    border-color: #0c4a6e;
}
body.dark-mode .nav-item {
    background-color: #334155;
    color: #cbd5e1;
    border-color: #475569;
}
body.dark-mode .nav-item:hover {
    background-color: #475569;
    color: #f8fafc;
}
body.dark-mode .nav-item.active {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #ffffff;
    border-color: transparent;
}
body.dark-mode .btn-primary {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
body.dark-mode .btn-secondary {
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .nav-menu { flex-direction: column; text-align: center; gap: 8px; }
    .action-buttons { flex-direction: column; gap: 12px; }
    .action-divider { display: none; }
    .btn { width: 100%; text-align: center; box-sizing: border-box; }
    .card-poem { padding: 10px 15px 20px 15px; }
    .card-summary { padding: 20px 15px; }
}