/* Resellers Paradise - Shared Styles */

:root {
    --pink: #e91e63;
    --pink-dark: #c2185b;
    --orange: #ff7043;
    --yellow: #ffc107;
    --yellow-light: #ffca28;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #e91e63 0%, #ff5722 50%, #ffc107 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    font-size: 3rem;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Page Transitions */
.page-transition {
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s;
}

header.scrolled {
    background: rgba(233, 30, 99, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

header.dark-header {
    background: var(--dark);
}

header.dark-header.scrolled {
    background: rgba(26, 26, 46, 0.95);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 36px;
    width: 36px;
    border-radius: 8px;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
    position: relative;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-white {
    background: var(--white);
    color: #1a1a2e !important;
}

.btn-white:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-signup {
    padding: 10px 24px;
}

.btn-signup .btn-arrow {
    display: none;
}

.nav-links .btn-signup {
    background: var(--white);
    color: var(--dark);
    font-weight: 600;
}

.btn-pink {
    background: var(--pink);
    color: var(--white);
}

.btn-pink:hover {
    background: var(--pink-dark);
}

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

.btn-dark:hover {
    background: var(--dark-light);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--dark);
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--dark);
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
}

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

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 48px;
}

.section-header.center {
    text-align: center;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--gray);
    font-size: 1rem;
    max-width: 650px;
}

.section-header.center p {
    margin: 0 auto;
}

/* Page Hero (for inner pages) */
.page-hero {
    background: linear-gradient(180deg, #e91e63 0%, #ff5722 60%, #ff9800 100%);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,50L48,45C96,40,192,30,288,35C384,40,480,60,576,65C672,70,768,60,864,50C960,40,1056,30,1152,35C1248,40,1344,60,1392,70L1440,80L1440,100L0,100Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.page-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-hero .breadcrumb {
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.page-hero .breadcrumb a:hover {
    color: var(--white);
}

/* Cards */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: var(--dark);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background 0.2s;
}

.footer-social a:hover {
    background: var(--pink);
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--gray-light);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    color: var(--gray);
    font-size: 0.85rem;
}

.footer-badges {
    display: flex;
    gap: 12px;
}

.footer-badge {
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--gray-light);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pink);
}

.form-note {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 16px 32px;
        gap: 0;
        z-index: 200;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links li:last-child {
        text-align: center;
        padding: 12px 0 4px;
    }

    .nav-links li:last-child a {
        border-bottom: none;
        display: inline-block;
        width: auto;
        padding: 12px 32px;
    }

    .mobile-menu {
        display: flex;
    }

    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
