/* Affiliate Links Pro - Frontend Styles */

:root {
    --alp-primary: #ea580c;
    --alp-primary-dark: #c2410c;
    --alp-secondary: #f97316;
    --alp-text: #1f2937;
    --alp-text-light: #6b7280;
    --alp-bg: #ffffff;
    --alp-bg-alt: #f9fafb;
    --alp-border: #e5e7eb;
    --alp-shadow: rgba(0, 0, 0, 0.1);
    --alp-shadow-lg: rgba(0, 0, 0, 0.15);
}

.alp-landing-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--alp-text);
    line-height: 1.6;
}

/* Hero Section */
.alp-hero {
    position: relative;
    padding: 120px 20px 80px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.alp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.alp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.alp-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out;
}

.alp-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

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

/* Products Section */
.alp-products-section {
    padding: 80px 20px;
    background: var(--alp-bg-alt);
}

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

.alp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Product Card */
.alp-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--alp-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.alp-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--alp-shadow-lg);
}

.alp-featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    animation: pulse 2s ease infinite;
}

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

.alp-product-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.alp-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.alp-product-card:hover .alp-product-image {
    transform: scale(1.1);
}

.alp-product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #999;
}

.alp-product-content {
    padding: 24px;
}

.alp-product-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--alp-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.alp-product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--alp-text);
    line-height: 1.3;
}

.alp-product-description {
    font-size: 0.875rem;
    color: var(--alp-text-light);
    margin: 0 0 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alp-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.alp-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--alp-primary);
}

.alp-product-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--alp-primary), var(--alp-secondary));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alp-product-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.alp-product-button:hover::before {
    width: 300px;
    height: 300px;
}

.alp-product-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.4);
}

.alp-product-button svg {
    transition: transform 0.3s ease;
}

.alp-product-button:hover svg {
    transform: translateX(4px);
}

/* CTA Section */
.alp-cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
}

.alp-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.alp-cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px;
}

.alp-cta-text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0 0 32px;
}

.alp-cta-button {
    padding: 16px 40px;
    background: white;
    color: var(--alp-text);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alp-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Empty State */
.alp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--alp-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .alp-hero-title {
        font-size: 2.5rem;
    }

    .alp-hero-subtitle {
        font-size: 1rem;
    }

    .alp-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .alp-cta-title {
        font-size: 2rem;
    }

    .alp-product-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .alp-product-button {
        width: 100%;
        justify-content: center;
    }
}

/* AOS Animation Library Support */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}
