/* Unified Styles for All AI Learning Platforms */
/* This file ensures consistent styling across all 6 learning platforms */

/* ============================
   LEARNING SECTION STYLES
   ============================ */

/* Learning Paths Container */
.learning-paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Path Cards */
.path-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.path-card.beginner {
    border-top: 3px solid #4CAF50;
}

.path-card.intermediate {
    border-top: 3px solid #ff9800;
}

.path-card.expert {
    border-top: 3px solid #9b59b6;
}

.path-card.master {
    border-top: 3px solid #e74c3c;
}

/* Path Icons */
.path-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.path-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.path-card p {
    color: #b8b8c0;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Path Modules List */
.path-modules {
    list-style: none;
    margin-bottom: 1.5rem;
    padding: 0;
}

.path-modules li {
    padding: 0.5rem 0;
    color: #b8b8c0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.path-modules li:last-child {
    border-bottom: none;
}

/* ============================
   UNIFIED BUTTON STYLES
   ============================ */

/* Base Button Styles */
.btn-base {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

/* Learning Buttons Container */
.path-actions,
.learning-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Start Learning Button - Universal Style */
.start-path-btn,
.start-learning-btn,
.learn-btn {
    flex: 1;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #4a9eff, #667eea);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.start-path-btn::before,
.start-learning-btn::before,
.learn-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.start-path-btn:hover::before,
.start-learning-btn:hover:not(:disabled)::before,
.learn-btn:hover::before {
    left: 100%;
}

.start-path-btn:hover,
.start-learning-btn:hover:not(:disabled),
.learn-btn:hover {
    background: linear-gradient(135deg, #357ABD, #5566cc);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 158, 255, 0.4);
}

.start-path-btn:active,
.start-learning-btn:active:not(:disabled),
.learn-btn:active {
    transform: translateY(-1px);
}

.start-path-btn:disabled,
.start-learning-btn:disabled,
.learn-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #6b6b6b, #4a4a4a);
}

/* Quiz Button - Universal Style */
.quiz-btn {
    flex: 1;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quiz-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.quiz-btn:hover:not(:disabled)::before {
    left: 100%;
}

.quiz-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.quiz-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #6b6b6b, #4a4a4a);
}

/* Try/Setup Guide Buttons (for provider cards) */
.try-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #4a9eff;
    border: 1px solid #4a9eff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.try-btn:hover {
    background: rgba(74, 158, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.2);
}

/* ============================
   LOCKED OVERLAY STYLES
   ============================ */

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.locked-overlay .lock-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.locked-overlay p {
    color: #b8b8c0;
    font-size: 0.9rem;
}

/* ============================
   PROVIDER/PLATFORM CARDS
   ============================ */

.providers-grid,
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.provider-card,
.platform-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.provider-card::before,
.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a9eff, #667eea);
}

.provider-card:hover,
.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(74, 158, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* Provider/Platform Actions */
.provider-actions,
.platform-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ============================
   NAVIGATION CONSISTENCY
   ============================ */

.main-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b8b8c0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #4a9eff, #667eea);
    color: white;
    border-color: transparent;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

@media (max-width: 768px) {
    .learning-paths {
        grid-template-columns: 1fr;
    }
    
    .providers-grid,
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .path-actions,
    .learning-actions,
    .provider-actions,
    .platform-actions {
        flex-direction: column;
    }
    
    .start-path-btn,
    .start-learning-btn,
    .learn-btn,
    .quiz-btn,
    .try-btn {
        width: 100%;
    }
}

/* ============================
   ROBOTICS SECTION SPECIFIC STYLES
   ============================ */

/* Robotics buttons get special treatment for a more technical feel */
.robotics-container .quiz-btn,
.robotics-container .start-learning-btn,
.cloud-robotics-container .quiz-btn,
.cloud-robotics-container .start-learning-btn {
    font-family: 'Courier New', monospace;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.robotics-container .quiz-btn::after,
.robotics-container .start-learning-btn::after,
.cloud-robotics-container .quiz-btn::after,
.cloud-robotics-container .start-learning-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4a9eff, #667eea, #4CAF50);
    border-radius: 10px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.robotics-container .quiz-btn:hover::after,
.robotics-container .start-learning-btn:hover:not(:disabled)::after,
.cloud-robotics-container .quiz-btn:hover::after,
.cloud-robotics-container .start-learning-btn:hover:not(:disabled)::after {
    opacity: 0.3;
    animation: pulse 1.5s infinite;
}

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

/* ============================
   ANIMATION CONSISTENCY
   ============================ */

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.content-section {
    animation: fadeIn 0.5s ease;
}

.path-card,
.provider-card,
.platform-card {
    animation: scaleIn 0.5s ease;
    animation-fill-mode: both;
}

/* ============================
   MODAL STYLES (Unified)
   ============================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #0f0f1e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    background: none;
    border: none;
    color: #b8b8c0;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: white;
}

/* ============================
   QUIZ MODAL STYLES
   ============================ */

.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.quiz-content {
    background: linear-gradient(135deg, #1a1a2e, #0f0f1e);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    padding: 2rem;
    animation: scaleIn 0.3s ease;
}

.quiz-question {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white;
}

.quiz-options {
    display: grid;
    gap: 1rem;
}

.quiz-option {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #b8b8c0;
}

.quiz-option:hover {
    background: rgba(74, 158, 255, 0.1);
    border-color: #4a9eff;
    transform: translateX(5px);
}

.quiz-option.correct {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    color: #4CAF50;
}

.quiz-option.incorrect {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
    color: #f44336;
}

/* ============================
   PROGRESS INDICATORS
   ============================ */

.progress-ring {
    position: relative;
    width: 50px;
    height: 50px;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring circle:nth-child(2) {
    stroke-dasharray: 125.6;
    stroke-dashoffset: 125.6;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}