/* ═══════════════════════════════════════════════════════
   PROPi.IN — Components
   Buttons, Cards, Forms, Nav, etc.
   ═══════════════════════════════════════════════════════ */

/* ── Buttons ────────────────────────────────────────── */
.btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 24px;
        font-family: var(--font-sans);
        font-size: 0.9375rem;
        font-weight: 600;
        border: none;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all var(--transition-base);
        text-decoration: none;
        line-height: 1;
        white-space: nowrap;
        min-height: 48px;
        /* Touch target */
}

.btn:active {
        transform: scale(0.97);
}

.btn--primary {
        background: var(--gradient-primary);
        color: var(--propi-white);
        box-shadow: var(--shadow-md), 0 0 0 0 rgba(79, 70, 229, 0);
}

.btn--primary:hover {
        box-shadow: var(--shadow-lg), var(--shadow-glow);
        transform: translateY(-1px);
        color: var(--propi-white);
}

.btn--secondary {
        background: var(--propi-white);
        color: var(--propi-primary);
        border: 2px solid var(--propi-primary);
}

.btn--secondary:hover {
        background: var(--propi-primary-50);
        color: var(--propi-primary);
}

.btn--success {
        background: var(--gradient-success);
        color: var(--propi-white);
}

.btn--success:hover {
        box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.3);
        transform: translateY(-1px);
        color: var(--propi-white);
}

.btn--accent {
        background: var(--gradient-accent);
        color: var(--propi-white);
}

.btn--accent:hover {
        box-shadow: var(--shadow-lg), 0 0 20px rgba(244, 63, 94, 0.3);
        transform: translateY(-1px);
        color: var(--propi-white);
}

.btn--ghost {
        background: transparent;
        color: var(--propi-white);
        border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.6);
        color: var(--propi-white);
}

.btn--sm {
        padding: 10px 18px;
        font-size: 0.8125rem;
        min-height: 40px;
}

.btn--lg {
        padding: 16px 36px;
        font-size: 1.0625rem;
        min-height: 52px;
}

.btn--block {
        width: 100%;
}

.btn--icon {
        padding: 12px;
        border-radius: var(--radius-full);
}

/* ── Cards ──────────────────────────────────────────── */
.card {
        background: var(--propi-white);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        overflow: hidden;
        transition: all var(--transition-base);
}

.card:hover {
        box-shadow: var(--shadow-xl);
        transform: translateY(-4px);
}

.card__body {
        padding: 24px;
}

.card__header {
        padding: 20px 24px;
        border-bottom: 1px solid var(--propi-gray-200);
        font-weight: 600;
}

.card__footer {
        padding: 16px 24px;
        border-top: 1px solid var(--propi-gray-200);
        background: var(--propi-gray-100);
}

.card--flat {
        box-shadow: none;
        border: 1px solid var(--propi-gray-300);
}

.card--flat:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--propi-primary-light);
}

.card--gradient {
        background: var(--gradient-card);
        border: 1px solid rgba(79, 70, 229, 0.1);
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0 24px;
        height: 72px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(15, 23, 42, 0.85);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: all var(--transition-base);
}

.navbar.scrolled {
        background: rgba(15, 23, 42, 0.95);
        box-shadow: var(--shadow-lg);
}

.navbar__brand {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
}

.navbar__brand-icon {
        width: 36px;
        height: 36px;
        background: var(--gradient-primary);
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 800;
        font-size: 1.1rem;
}

.navbar__brand-text {
        font-family: var(--font-display);
        font-weight: 800;
        font-size: 1.3rem;
        color: var(--propi-white);
        letter-spacing: -0.5px;
}

.navbar__brand-text span {
        color: var(--propi-accent);
}

.navbar__links {
        display: flex;
        align-items: center;
        gap: 8px;
        list-style: none;
}

.navbar__links a {
        color: var(--propi-gray-400);
        padding: 8px 16px;
        border-radius: var(--radius-sm);
        font-size: 0.9rem;
        font-weight: 500;
        transition: all var(--transition-fast);
}

.navbar__links a:hover {
        color: var(--propi-white);
        background: rgba(255, 255, 255, 0.08);
}

.navbar__actions {
        display: flex;
        gap: 12px;
        align-items: center;
}

.navbar__hamburger {
        display: none;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 8px;
        background: none;
        border: none;
}

.navbar__hamburger span {
        width: 24px;
        height: 2px;
        background: var(--propi-white);
        border-radius: 2px;
        transition: all var(--transition-fast);
}

@media (max-width: 768px) {
        .navbar {
                height: 60px;
                padding: 0 16px;
        }

        .navbar__links {
                display: none;
        }

        .navbar__actions .btn {
                display: none;
        }

        .navbar__hamburger {
                display: flex;
        }
}

/* Hamburger animation */
.navbar__hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.open span:nth-child(2) {
        opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile Menu Overlay ───────────────────────────── */
.mobile-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
        opacity: 0;
        transform: translateY(-10px);
        transition: all var(--transition-base);
}

.mobile-menu.open {
        display: block;
        opacity: 1;
        transform: translateY(0);
}

.mobile-menu__inner {
        padding: 24px;
}

.mobile-menu__link {
        display: block;
        color: var(--propi-white);
        font-size: 1.125rem;
        font-weight: 600;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-decoration: none;
        min-height: 52px;
        display: flex;
        align-items: center;
}

.mobile-menu__link:hover {
        color: var(--propi-primary-light);
}

@media (min-width: 769px) {
        .mobile-menu {
                display: none !important;
        }
}

/* ── Forms ──────────────────────────────────────────── */
.form-group {
        margin-bottom: 20px;
}

.form-label {
        display: block;
        margin-bottom: 6px;
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--propi-gray-700);
}

.form-input,
.form-select,
.form-textarea {
        width: 100%;
        padding: 14px 16px;
        font-family: var(--font-sans);
        font-size: 16px;
        /* 16px prevents iOS zoom */
        color: var(--propi-dark);
        background: var(--propi-white);
        border: 2px solid var(--propi-gray-300);
        border-radius: var(--radius-md);
        outline: none;
        transition: all var(--transition-fast);
        min-height: 48px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
        border-color: var(--propi-primary);
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-input::placeholder {
        color: var(--propi-gray-500);
}

.form-textarea {
        resize: vertical;
        min-height: 100px;
}

.form-radio-group,
.form-checkbox-group {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
}

.form-radio,
.form-checkbox {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 18px;
        background: var(--propi-gray-100);
        border: 2px solid var(--propi-gray-300);
        border-radius: var(--radius-md);
        cursor: pointer;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all var(--transition-fast);
        min-height: 44px;
        user-select: none;
        -webkit-user-select: none;
}

.form-radio.active,
.form-checkbox.active {
        background: var(--propi-primary-50);
        border-color: var(--propi-primary);
        color: var(--propi-primary);
}

/* ── Badges ─────────────────────────────────────────── */
.badge {
        display: inline-flex;
        align-items: center;
        padding: 4px 12px;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: var(--radius-full);
        letter-spacing: 0.3px;
}

.badge--primary {
        background: var(--propi-primary-50);
        color: var(--propi-primary);
}

.badge--success {
        background: #ecfdf5;
        color: var(--propi-success);
}

.badge--warning {
        background: #fffbeb;
        color: var(--propi-warning);
}

.badge--accent {
        background: #fef2f2;
        color: var(--propi-accent);
}

/* ── Stats ──────────────────────────────────────────── */
.stat {
        text-align: center;
        padding: 24px;
}

.stat__number {
        font-family: var(--font-display);
        font-size: 2.5rem;
        font-weight: 800;
        line-height: 1;
        margin-bottom: 4px;
}

.stat__label {
        font-size: 0.875rem;
        color: var(--propi-gray-600);
        font-weight: 500;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
        background: var(--propi-dark);
        color: var(--propi-gray-400);
        padding: 64px 0 32px;
}

.footer__grid {
        display: grid;
        grid-template-columns: 2fr repeat(3, 1fr);
        gap: 48px;
        margin-bottom: 48px;
}

.footer__brand-text {
        font-family: var(--font-display);
        font-weight: 800;
        font-size: 1.5rem;
        color: var(--propi-white);
        margin-bottom: 12px;
}

.footer__brand-text span {
        color: var(--propi-accent);
}

.footer__desc {
        font-size: 0.9rem;
        line-height: 1.7;
        max-width: 320px;
}

.footer__heading {
        color: var(--propi-white);
        font-size: 0.9rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 20px;
}

.footer__links {
        list-style: none;
}

.footer__links li {
        margin-bottom: 10px;
}

.footer__links a {
        color: var(--propi-gray-500);
        font-size: 0.9rem;
        transition: color var(--transition-fast);
}

.footer__links a:hover {
        color: var(--propi-white);
}

.footer__bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8125rem;
}

@media (max-width: 768px) {
        .footer__grid {
                grid-template-columns: 1fr;
                gap: 32px;
        }

        .footer__bottom {
                flex-direction: column;
                gap: 12px;
                text-align: center;
        }
}

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeInUp {
        from {
                opacity: 0;
                transform: translateY(30px);
        }

        to {
                opacity: 1;
                transform: translateY(0);
        }
}

@keyframes fadeIn {
        from {
                opacity: 0;
        }

        to {
                opacity: 1;
        }
}

@keyframes pulse {

        0%,
        100% {
                opacity: 1;
        }

        50% {
                opacity: 0.5;
        }
}

@keyframes float {

        0%,
        100% {
                transform: translateY(0);
        }

        50% {
                transform: translateY(-10px);
        }
}

.animate-fade-in-up {
        animation: fadeInUp 0.6s var(--ease-out) forwards;
        opacity: 0;
}

.animate-delay-1 {
        animation-delay: 0.1s;
}

.animate-delay-2 {
        animation-delay: 0.2s;
}

.animate-delay-3 {
        animation-delay: 0.3s;
}

.animate-delay-4 {
        animation-delay: 0.4s;
}

.animate-delay-5 {
        animation-delay: 0.5s;
}

/* ── Utility ────────────────────────────────────────── */
.mt-1 {
        margin-top: 8px;
}

.mt-2 {
        margin-top: 16px;
}

.mt-3 {
        margin-top: 24px;
}

.mt-4 {
        margin-top: 32px;
}

.mb-1 {
        margin-bottom: 8px;
}

.mb-2 {
        margin-bottom: 16px;
}

.mb-3 {
        margin-bottom: 24px;
}

.mb-4 {
        margin-bottom: 32px;
}

.py-1 {
        padding-top: 8px;
        padding-bottom: 8px;
}

.py-2 {
        padding-top: 16px;
        padding-bottom: 16px;
}

/* ── Flash Messages ─────────────────────────────────── */
.flash {
        padding: 14px 20px;
        border-radius: var(--radius-md);
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
}

.flash--success {
        background: #ecfdf5;
        color: #065f46;
        border: 1px solid #a7f3d0;
}

.flash--error {
        background: #fef2f2;
        color: #991b1b;
        border: 1px solid #fecaca;
}

.flash--info {
        background: #eff6ff;
        color: #1e40af;
        border: 1px solid #bfdbfe;
}