/* ═══════════════════════════════════════════════════════════
   Hosting MVP - Custom Styles (সবুজ theme)
   ═══════════════════════════════════════════════════════════ */

:root {
    --primary:       #16a34a;
    --primary-dark:  #15803d;
    --primary-light: #22c55e;
    --brand:         #064e14;
    --brand-mid:     #0a6b1c;
    --brand-dark:    #053d10;
    --accent:        #22c55e;
    --footer-bg:     #032208;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Hind Siliguri', 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

:lang(bn), [lang="bn"] {
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
}

/* Alpine cloak */
[x-cloak] { display: none !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
    border-color: #d1d5db;
    color: #374151;
    background: white;
}
.btn-outline:hover { background: #f9fafb; }

.btn-danger {
    background: #dc2626;
    color: white;
}
.btn-danger:hover { background: #b91c1c; }

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}
.dark .card {
    background: #1f2937;
    border-color: #374151;
}

/* Forms */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

/* Dark mode forms */
.dark .form-input,
.dark .form-select,
.dark .form-textarea {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-neutral { background: #f3f4f6; color: #374151; }

/* Tables */
.data-table {
    width: 100%;
    font-size: 0.875rem;
}
.data-table thead {
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}
.data-table td {
    padding: 0.75rem 1rem;
    border-top: 1px solid #f3f4f6;
}
.data-table tbody tr:hover {
    background: #f9fafb;
}

.dark .data-table thead { background: #111827; color: #9ca3af; }
.dark .data-table td { border-color: #374151; }
.dark .data-table tbody tr:hover { background: #1f2937; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer — full width override */
footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box;
}
footer > div:first-child {
    padding: 40px 60px;
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #064e14 0%, #0a6b1c 40%, #053d10 100%);
}

/* Hosting package card */
.package-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}
.package-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.package-card.popular {
    background: linear-gradient(135deg, #064e14, #0a6b1c);
    color: white;
    border-color: #053d10;
}
.package-card.popular .price { color: white; }

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f59e0b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #064e14;
    line-height: 1;
}

/* Utility: line-clamp */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toast {
    background: white;
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 24rem;
}
