/* Custom CSS for Affiliate Site */

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --info-color: #0984e3;
    --text-dark: #2d3436;
    --text-light: #636e72;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Navbar Styles */
.navbar {
    background: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.reward-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(233, 69, 96, 0.9);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    backdrop-filter: blur(5px);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.price-tag {
    font-weight: bold;
}

.reward-offer {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    border-right: 3px solid var(--accent-color);
}

/* Step Circles */
.step-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Reward Box */
.reward-box {
    background: linear-gradient(135deg, #fff5e6, #fff);
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: 15px;
}

.reward-text {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    margin-top: auto;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer a {
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--accent-color) !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    border: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #00b894, #00cec9);
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .product-image-wrapper {
        height: 200px;
    }
    
    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Product Detail Page */
.product-title {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-tabs .nav-link {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Contact Page */
.contact-info {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: 15px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}
/* Social Share Buttons */
.social-share-section {
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.share-btn {
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
}

.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 10000;
    animation: fadeInUp 0.3s, fadeOut 0.3s 2.7s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-weight: bold;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Social Share Mini */
.social-share-mini .btn-group .btn {
    padding: 4px 8px;
    font-size: 12px;
}

.social-share-mini .btn-group .btn:hover {
    transform: translateY(-2px);
}