/* Modern Component Styles for DanaStudy */

/* Card Components */
.modern-card {
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0038FF, #4A6BFF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 56, 255, 0.2);
}

.modern-card:hover::before {
    transform: scaleX(1);
}

/* Interactive Card */
.interactive-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 56, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.interactive-card:hover::after {
    width: 300px;
    height: 300px;
}

/* Glass Morphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 56, 255, 0.1);
}

/* Gradient Button */
.gradient-button {
    background: linear-gradient(135deg, #0038FF 0%, #4A6BFF 100%);
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    padding: 12px 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 56, 255, 0.3);
}

.gradient-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.gradient-button:hover::before {
    left: 100%;
}

.gradient-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 56, 255, 0.4);
}

.gradient-button:active {
    transform: translateY(0);
}

/* Icon Container */
.icon-container {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 56, 255, 0.1), rgba(74, 107, 255, 0.1));
    transition: all 0.3s ease;
}

.icon-container:hover {
    background: linear-gradient(135deg, rgba(0, 56, 255, 0.2), rgba(74, 107, 255, 0.2));
    transform: rotate(5deg) scale(1.1);
}

/* Section Header */
.section-header {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0038FF, #4A6BFF);
    border-radius: 2px;
}

/* Feature List Item */
.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.feature-item:hover {
    background: rgba(0, 56, 255, 0.05);
    transform: translateX(8px);
}

.feature-item .icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0038FF, #4A6BFF);
    color: white;
    margin-right: 16px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(0, 56, 255, 0.1), rgba(74, 107, 255, 0.1));
    color: #0038FF;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 56, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0038FF, #4A6BFF);
    border-radius: 4px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Divider with Icon */
.divider-with-icon {
    display: flex;
    align-items: center;
    margin: 32px 0;
}

.divider-with-icon::before,
.divider-with-icon::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 56, 255, 0.3), transparent);
}

.divider-with-icon .icon {
    margin: 0 16px;
    color: #0038FF;
}

/* Responsive Container */
.responsive-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 960px) {
    .responsive-container {
        padding: 0 24px;
    }
}

@media (min-width: 1280px) {
    .responsive-container {
        padding: 0 32px;
    }
}

/* Grid System */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 56, 255, 0.1);
    border-top-color: #0038FF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Tooltip */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    font-size: 14px;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Chip */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 16px;
    background: rgba(0, 56, 255, 0.1);
    color: #0038FF;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chip:hover {
    background: rgba(0, 56, 255, 0.2);
    transform: scale(1.05);
}

/* Stats Card */
.stats-card {
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 56, 255, 0.15);
}

.stats-number {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #0038FF, #4A6BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

