/* ============================================
   MyFolder Front Page - BS5 Optimized Styles
   ============================================ */

/* ---- Brand Colors ---- */
:root {
    --brand-primary: #844fe1;
    --brand-primary-dark: #6a3bc4;
    --brand-secondary: #ffcc33;
    --brand-secondary-dark: #e6b82e;
    --brand-dark: #1a1a2e;
    --brand-gray: #f5f5f9;
    --brand-text: #444;
    --bs-body-font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    font-family: var(--bs-body-font-family);
    color: var(--brand-text);
    overflow-x: hidden;
}

/* ---- Header ---- */
#header {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}
#header.header-shadow-scroll {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
#header .logo img {
    max-height: 50px;
    width: auto;
}

/* ---- Content Rows ---- */
.content-row {
    padding: 80px 0;
}
.content-row-color {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #6a3bc4 100%);
    color: #fff;
}
.content-row-color h1, .content-row-color h2,
.content-row-color h3, .content-row-color mark,
.content-row-color p { color: #fff; }
.content-row-color mark {
    background: transparent;
    font-weight: 700;
}
.content-row-gray {
    background: var(--brand-gray);
}
.content-row-clouds {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #8b5cf6 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* ---- Content Header ---- */
.content-header {
    text-align: center;
    margin-bottom: 50px;
}
.content-header-small {
    margin-bottom: 0;
    padding: 30px 0;
}
.content-header-small h1 {
    font-size: 2rem;
}
.content-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.content-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--brand-dark);
}
.content-header p {
    font-size: 1.15rem;
    color: #666;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}
.content-row-color .content-header p { color: rgba(255,255,255,0.9); }
.content-row-color .content-header h2 { color: #fff; }
.content-header-large h1 { font-size: 3.2rem; }
.content-header-uppercase h1 { text-transform: uppercase; letter-spacing: -1px; }
mark { background: transparent; color: inherit; font-weight: 700; }
.content-row-color mark { color: var(--brand-secondary); }

/* ---- Hero Slider ---- */
.content-slider {
    position: relative;
    width: 100%;
}
.content-slider .slide {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 40px 0;
}
.content-slider .slide:hover { text-decoration: none; }
.content-slider .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
}
.content-slider img {
    max-height: 380px;
    width: auto;
    object-fit: contain;
}
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.3s;
}
.slider-dot.active { background: #fff; }

/* ---- Icon Features ---- */
.icon-feature {
    font-size: 3rem;
    color: var(--brand-primary);
    margin-bottom: 1.2rem;
}

/* ---- Product Box ---- */
.product-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.product-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--brand-dark);
}
.product-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
}
.product-price strong {
    font-size: 1rem;
    font-weight: 600;
    vertical-align: super;
}
.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 0.95rem;
}
.product-features li:last-child { border-bottom: none; }

/* ---- Buttons ---- */
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.btn-primary:hover {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}
.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.btn-outline-primary:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}
.btn-outline-secondary {
    color: var(--brand-secondary);
    border-color: var(--brand-secondary);
}
.btn-outline-secondary:hover {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: var(--brand-dark);
}
.text-color-secondary { color: var(--brand-secondary) !important; }
.text-color-primary { color: var(--brand-primary) !important; }

/* ---- Payment Gateways ---- */
.payGateways img {
    max-height: 50px;
    vertical-align: middle;
}
.payGateways img.pp {
    padding: 10px;
}

/* ---- Footer ---- */
#footer.footer-color {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
#footer a:hover { color: #fff !important; }
.text-white-50 { color: rgba(255,255,255,0.6) !important; }

/* ---- Card & Form Overrides ---- */
.card {
    border-radius: 16px;
}
.card .form-control,
.card .form-select {
    border-radius: 10px;
    padding: 12px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.card .form-control:focus,
.card .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(132, 79, 225, 0.15);
}
.card .form-label {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* ---- Alert Overrides ---- */
.alert {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid;
    line-height: 1.5;
}
.alert-danger {
    border-color: #FF7588 !important;
    background-color: #FFBCC6 !important;
    color: #C2001B !important;
}
.alert-success {
    border-color: #16D39A !important;
    background-color: #45ECB9 !important;
    color: #053124 !important;
}

/* ---- Responsive Tweaks ---- */
@media (max-width: 768px) {
    .content-row { padding: 50px 0; }
    .content-header h1 { font-size: 1.8rem; }
    .content-header h2 { font-size: 1.5rem; }
    .content-slider .container { flex-direction: column; }
    .content-slider img { max-height: 220px; }
    .content-header-large h1 { font-size: 2rem; }
    .product-box { margin-bottom: 20px; }
}
