/* assets/css/style.css */

/* ১. গ্লোবাল ভেরিয়েবল এবং ফন্ট সেটআপ */
:root {
    --primary: #4F46E5;       /* মেইন কালার (Indigo) */
    --primary-hover: #4338ca; /* হোভার কালার */
    --bg-color: #F3F4F6;      /* ব্যাকগ্রাউন্ড কালার */
    --text-main: #1F2937;     /* টেক্সট কালার */
    --text-muted: #6B7280;    /* হালকা টেক্সট */
    --card-bg: #ffffff;       /* কার্ড ব্যাকগ্রাউন্ড */
    --border-color: #E5E7EB;  /* বর্ডার কালার */
    --success: #10B981;       /* সাকসেস কালার (Green) */
    --font-bn: 'Hind Siliguri', sans-serif; /* বাংলা ফন্ট */
    --font-en: 'Poppins', sans-serif;       /* ইংরেজি ফন্ট */
}

/* ২. বেসিক রিসেট */
* { box-sizing: border-box; }
body {
    font-family: var(--font-en); /* ডিফল্ট ইংরেজি */
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-bn); 
    font-weight: 700; 
    margin: 0 0 1rem; 
}
a { text-decoration: none; color: inherit; }

/* ৩. লেআউট ইউটিলিটি */
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.mt-5 { margin-top: 3rem; }
.text-center { text-align: center; }
.w-100 { width: 100%; }

/* ৪. ন্যাভিগেশন বার (Navbar) */
.navbar { 
    background: white; 
    border-bottom: 1px solid var(--border-color); 
    padding: 1rem 0; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
    margin-bottom: 20px;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--primary); 
    font-family: var(--font-en); 
}
.nav-links { display: flex; gap: 15px; align-items: center; }
.nav-item { 
    color: var(--text-muted); 
    font-weight: 600; 
    font-family: var(--font-bn); 
    font-size: 0.95rem;
}
.nav-item:hover { color: var(--primary); }

/* ৫. বাটন ডিজাইন */
.btn { 
    display: inline-block; 
    padding: 10px 24px; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 0.95rem; 
    cursor: pointer; 
    transition: all 0.2s; 
    border: none; 
    font-family: var(--font-bn); 
    text-align: center;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-success { background: var(--success); color: white; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }

/* ৬. কার্ড এবং ফর্ম ডিজাইন */
.card { 
    background: var(--card-bg); 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    overflow: hidden; 
}
.card-body, .p-4 { padding: 2rem; }

.form-control { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    font-size: 1rem; 
    margin-bottom: 1rem; 
    font-family: var(--font-bn); 
}
.form-control:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); 
}
.form-label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-family: var(--font-bn); 
}

/* ৭. পোল ভোটিং অপশন (কার্ড স্টাইল) */
.options-grid { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.option-card { 
    position: relative; 
    cursor: pointer; 
    display: block; 
    transition: transform 0.1s;
}
.option-card:active { transform: scale(0.98); }

.option-content {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: white;
    transition: all 0.2s;
}
.option-card:hover .option-content {
    border-color: var(--primary);
    background-color: #f9fafb;
}

.option-text { font-size: 1.05rem; font-family: var(--font-bn); font-weight: 500; }
.check-icon { color: var(--text-muted); font-size: 1.2rem; }

/* ৮. রেজাল্ট বার (Progress Bar) */
.result-bar-wrapper { margin-bottom: 1.5rem; }
.result-info { display: flex; justify-content: space-between; margin-bottom: 5px; font-weight: 600; font-family: var(--font-bn); }
.progress-track { height: 10px; background: #E5E7EB; border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 6px; transition: width 1s ease-in-out; }

/* ৯. Modal (Popup) Design */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header { text-align: center; margin-bottom: 20px; }
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #9ca3af;
}
.modal-close:hover { color: #ef4444; }

/* ১০. ইমেজ স্টাইল (আপডেট করা হয়েছে) */

/* হোম পেজের কার্ডের ছবি */
.poll-card-img {
    width: 100%;
    height: 200px; /* উচ্চতা একটু বাড়ানো হয়েছে */
    object-fit: cover; /* বক্স ভরাট করে রাখবে */
    object-position: center; /* মাঝ বরাবর দেখাবে */
    border-bottom: 1px solid #eee;
}

/* পোল পেজের বিস্তারিত ছবি */
.poll-detail-img {
    width: 100%;
    height: auto; /* অটো হাইট দেওয়া হয়েছে যাতে চ্যাপ্টা না হয় */
    max-height: 500px; /* সর্বোচ্চ উচ্চতা সেট করা হয়েছে */
    object-fit: contain; /* পুরো ছবি দেখা যাবে, ক্রপ হবে না */
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #f9fafb; /* ছবির ব্যাকগ্রাউন্ড */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}