/* Catalog CTA Styles - Dedicated CSS for Download CTA Component */
/* Following user preference for section-specific CSS files to prevent conflicts */

/* CTA Container Styles */
#catalog-cta {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 50;
    max-width: 20rem;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CTA Card Styles */
.catalog-cta-card {
    background: linear-gradient(135deg, #f8d215 0%, #facc15 50%, #fb923c 100%);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

/* Close Button */
.catalog-cta-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.catalog-cta-close:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.catalog-cta-close svg {
    width: 1rem;
    height: 1rem;
    color: #000;
    transition: transform 0.3s ease;
}

.catalog-cta-close:hover svg {
    transform: rotate(90deg);
}

/* Animated Background Elements */
.catalog-cta-bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.catalog-cta-circle-1 {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 50%;
    animation: catalog-pulse 3s ease-in-out infinite;
}

.catalog-cta-circle-2 {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, transparent 100%);
    border-radius: 50%;
    animation: catalog-float 6s ease-in-out infinite;
}

.catalog-cta-circle-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8rem;
    height: 8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: catalog-spin-slow 20s linear infinite;
}

/* Shine Effect */
.catalog-cta-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: translateX(-100%) skewX(-12deg);
    animation: catalog-shine 3s ease-in-out infinite;
    pointer-events: none;
}

/* Content Container */
.catalog-cta-content {
    position: relative;
    z-index: 10;
}

/* Icon Container */
.catalog-cta-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #000 0%, #374151 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.catalog-cta-icon:hover {
    transform: scale(1.1);
}

.catalog-cta-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: #f8d215;
    animation: catalog-pulse 2s ease-in-out infinite;
}

/* Typography */
.catalog-cta-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.catalog-cta-description {
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Features Grid */
.catalog-cta-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.catalog-cta-feature {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem;
    backdrop-filter: blur(8px);
}

.catalog-cta-feature svg {
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.25rem;
    color: #059669; /* Green for checkmarks */
}

.catalog-cta-feature:nth-child(2) svg {
    color: #2563eb; /* Blue for second feature */
}

/* Download Button */
.catalog-cta-button {
    width: 100%;
    background: linear-gradient(135deg, #000 0%, #374151 100%);
    color: #f8d215;
    font-weight: 900;
    padding: 1rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.catalog-cta-button:hover {
    background: linear-gradient(135deg, #374151 0%, #000 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 15px 35px -5px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.catalog-cta-button:active {
    transform: translateY(0);
}

/* Button Shine Effect */
.catalog-cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%) skewX(-12deg);
    transition: transform 0.6s ease;
}

.catalog-cta-button:hover::before {
    transform: translateX(200%) skewX(-12deg);
}

.catalog-cta-button svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.catalog-cta-button:hover svg {
    animation: catalog-bounce 0.6s ease;
    transform: scale(1.1);
}

.catalog-cta-button-text {
    position: relative;
    z-index: 10;
}

.catalog-cta-button-size {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.75;
    position: relative;
    z-index: 10;
}

/* Animation Classes */
.cta-show {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.cta-hide {
    opacity: 0 !important;
    transform: translateX(100%) !important;
}

/* Hover Effects for Container */
#catalog-cta:hover .catalog-cta-card {
    transform: scale(1.02);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Keyframe Animations */
@keyframes catalog-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes catalog-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes catalog-spin-slow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes catalog-shine {
    0% {
        transform: translateX(-100%) skewX(-12deg);
    }
    50% {
        transform: translateX(0%) skewX(-12deg);
    }
    100% {
        transform: translateX(200%) skewX(-12deg);
    }
}

@keyframes catalog-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1.1);
    }
    40% {
        transform: translateY(-3px) scale(1.1);
    }
    60% {
        transform: translateY(-1px) scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #catalog-cta {
        right: 1rem;
        bottom: 1rem;
        max-width: 18rem;
    }
    
    .catalog-cta-card {
        padding: 1.25rem;
    }
    
    .catalog-cta-title {
        font-size: 1.125rem;
    }
    
    .catalog-cta-description {
        font-size: 0.8125rem;
    }
    
    .catalog-cta-button {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    #catalog-cta {
        right: 0.75rem;
        bottom: 0.75rem;
        max-width: 16rem;
    }
    
    .catalog-cta-card {
        padding: 1rem;
    }
    
    .catalog-cta-features {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .catalog-cta-feature {
        font-size: 0.6875rem;
        padding: 0.375rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .catalog-cta-card {
        border: 2px solid #000;
        background: #f8d215;
    }
    
    .catalog-cta-button {
        border: 2px solid #000;
        background: #000;
        color: #f8d215;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    #catalog-cta,
    .catalog-cta-card,
    .catalog-cta-close,
    .catalog-cta-close svg,
    .catalog-cta-icon,
    .catalog-cta-button {
        transition: none;
    }
    
    .catalog-cta-circle-1,
    .catalog-cta-circle-2,
    .catalog-cta-circle-3,
    .catalog-cta-shine,
    .catalog-cta-icon svg {
        animation: none;
    }
    
    .catalog-cta-button:hover svg {
        animation: none;
    }
}

