/**
 * CockpitOS Light Theme - CTA Widget Styles
 * 
 * Verantwortlichkeit: CTA Styling (Single & Dual)
 * 
 * @package CockpitOS_Light_Theme
 * @version 1.0.0
 */

/* ========================================
   Container
   ======================================== */

.cockpit-cta {
    width: 100%;
}

.cockpit-cta__grid {
    display: grid;
    gap: 30px;
}

.cockpit-cta--single .cockpit-cta__grid {
    grid-template-columns: 1fr;
}

.cockpit-cta--dual .cockpit-cta__grid {
    grid-template-columns: repeat(2, 1fr);
}

/* ========================================
   CTA Item
   ======================================== */

.cockpit-cta__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cockpit-cta__item:hover {
    transform: translateY(-4px);
}

/* ========================================
   Background
   ======================================== */

.cockpit-cta__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.cockpit-cta__item:hover .cockpit-cta__background {
    transform: scale(1.05);
}

/* ========================================
   Overlay
   ======================================== */

.cockpit-cta__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

.cockpit-cta__item:hover .cockpit-cta__overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

/* ========================================
   Content
   ======================================== */

.cockpit-cta__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.cockpit-cta__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.25rem 0;
    line-height: 1.2;
}

/* ========================================
   Button
   ======================================== */

.cockpit-cta__button {
    display: inline-block;
    padding: 0.75rem 1.875rem;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cockpit-cta__item:hover .cockpit-cta__button {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .cockpit-cta__title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .cockpit-cta--dual .cockpit-cta__grid {
        grid-template-columns: 1fr;
    }
    
    .cockpit-cta__item {
        height: 350px;
    }
    
    .cockpit-cta__title {
        font-size: 1.75rem;
    }
    
    .cockpit-cta__button {
        font-size: 0.8125rem;
        padding: 0.625rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .cockpit-cta__item {
        height: 300px;
    }
    
    .cockpit-cta__title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .cockpit-cta__content {
        padding: 1.5rem;
    }
}

