/* Menu Component Styling */

/* User Team Card Highlighting */
.user-team-card {
    position: relative;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(139, 0, 0, 0.3) !important;
    border: 2px solid rgba(139, 0, 0, 0.3) !important;
}

.user-team-card::before {
    content: 'Sizin Takımınız';
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #8B0000, #b40024);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(139, 0, 0, 0.5);
    }
    100% {
        box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
    }
}

/* Modules Section */
.modules-section {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.modules-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    margin: 2rem;
    z-index: -1;
}

/* Section Title and Subtitle Styles */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #000, #000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    animation: slideInDown 1s ease-out;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.9);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
    margin-bottom: 3rem;
    animation: slideInUp 1s ease-out 0.3s both;
}

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

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

/* Core functionality card styles */
.functionality-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border-left: 4px solid rgba(139, 0, 0, 1);
}

.functionality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.6s;
}

.functionality-card:hover::before {
    left: 100%;
}

.functionality-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95));
    border-left-color: rgba(139, 0, 0, 0.4);
}

/* Card icon styling */
.functionality-card .card-icon {
    background: linear-gradient(135deg, #8b0000, #a52a2a);
    color: white;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.functionality-card .card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.functionality-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.functionality-card:hover .card-icon::before {
    transform: translateX(100%);
}

/* Card body layout to ensure consistent feature list positioning */
.functionality-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px; /* Minimum height to ensure consistency */
    padding: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.functionality-card .card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    flex-shrink: 0;
    /* Height will be set dynamically by JavaScript */
}

.functionality-card .card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #8b0000, #a52a2a);
    border-radius: 1px;
}

.functionality-card .card-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-shrink: 0;
    /* Height will be set dynamically by JavaScript */
}

.functionality-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    flex-shrink: 0;
    margin-top: 0; /* Align from top */
}

/* Feature list styling with background (like finance module) */
.functionality-card .feature-list li {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 3px solid rgba(139, 0, 0, 1);
    transition: all 0.2s ease;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #555;
}

.functionality-card .feature-list li:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-left-color: rgba(139, 0, 0, 0.4);
    transform: translateX(5px);
    color: #333;
}

/* Feature icon styling with default colors */
.functionality-card .feature-list li i {
    margin-right: 0.5rem;
    transition: color 0.2s ease;
}

.functionality-card .feature-list li:hover i {
    color: rgba(139, 0, 0, 0.4) !important;
}

/* Card features and tags */
.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    color: #2c3e50;
    padding: 0.35rem 0.85rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid rgba(139, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-tag:hover {
    background: linear-gradient(135deg, #8b0000, #a52a2a);
    color: white;
    border-color: #8b0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-action {
    margin-top: auto;
}

/* Enhanced animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

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

/* Card entrance animations */
.functionality-card {
    animation: slideInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.functionality-card:nth-child(1) { animation-delay: 0.1s; }
.functionality-card:nth-child(2) { animation-delay: 0.2s; }
.functionality-card:nth-child(3) { animation-delay: 0.3s; }
.functionality-card:nth-child(4) { animation-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .functionality-card .card-body {
        min-height: 280px;
        padding: 2rem;
    }
    
    .functionality-card .card-title {
        font-size: 1.4rem;
    }
    
    .functionality-card .card-icon {
        font-size: 3rem;
    }
    
    .functionality-card .card-text {
        min-height: 3rem;
    }
    
    .functionality-card .feature-list li {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .card-features {
        gap: 0.25rem;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .functionality-card .card-body {
        padding: 1.5rem;
    }
    
    .functionality-card .feature-list li {
        font-size: 0.9rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 0.15rem 0.4rem;
    }
}
