/* Student Page Styles */

/* Student Panel Base */
.student-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.student-panel .admin-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
}

.student-panel .admin-content {
    padding: 2rem 0;
}

/* Parent Connection Notification */
.parent-notification {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    animation: slideDown 0.5s ease-out;
}

/* Verification Code Display */
.verification-code-display {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.code-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.verification-code {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    background: #ecf0f1;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    letter-spacing: 2px;
    border: 2px solid #3498db;
}

.code-instruction {
    margin: 0;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

.parent-card.code-waiting {
    border-left: 4px solid #f39c12;
}

.parent-card.code-waiting .parent-status.code-waiting {
    color: #f39c12;
    font-weight: 600;
}

.status-badge.waiting {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.notification-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.notification-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.notification-text p {
    margin: 0;
    opacity: 0.9;
}

.notification-actions {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.notification-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.btn-success:hover {
    background: rgba(16, 185, 129, 1);
    transform: translateY(-2px);
}

.btn-error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.btn-error:hover {
    background: rgba(239, 68, 68, 1);
    transform: translateY(-2px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.game-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.game-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    flex-shrink: 0;
}

.game-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.game-info p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.game-status {
    display: flex;
    gap: 0.5rem;
}

.status-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.new {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Analysis Section */
.analysis-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.analysis-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.analysis-summary {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.analysis-summary h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
}

.personality-traits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trait {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trait-name {
    min-width: 100px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.trait-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.trait-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.trait-score {
    min-width: 40px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* Career Suggestions */
.career-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.career-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.career-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.career-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.career-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.career-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.career-info p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.match-score {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
}

/* Activities List */
.activities-list {
    margin-top: 1.5rem;
}

.activity-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

.activity-content h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.activity-content p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.activity-time {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Games Modal */
.games-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.game-modal-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-modal-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.game-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-modal-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.game-modal-card p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.game-difficulty {
    background: var(--surface);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Profile Modal */
.profile-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.profile-details p {
    margin: 0 0 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.profile-stat {
    text-align: center;
    padding: 1rem;
    background: var(--surface);
    border-radius: 12px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Verification Success */
.verification-success {
    text-align: center;
}

.verification-success h4 {
    margin: 0 0 1rem 0;
    color: var(--success-color);
}

.verification-code {
    background: var(--success-color);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    margin: 1rem 0;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
}

/* Parents Grid */
.parents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.parent-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.parent-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.parent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.parent-card.pending {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
}

.parent-card.confirmed {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #dcfdf4 0%, #ffffff 100%);
}

.parent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.parent-card.pending .parent-avatar {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.parent-card.confirmed .parent-avatar {
    background: linear-gradient(135deg, #10b981, #059669);
}

.parent-info {
    flex: 1;
    min-width: 0;
}

.parent-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.parent-status {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.parent-status.pending {
    color: #d97706;
}

.parent-status.confirmed {
    color: #059669;
}

.parent-info small {
    color: var(--text-light);
    font-size: 0.75rem;
}

.parent-actions {
    display: block;
    width: 100%;
    flex-shrink: 0;
}

.parent-actions .parent-code {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.parent-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.status-badge.pending {
    background: #f59e0b;
}

.status-badge.confirmed {
    background: #10b981;
}

/* Parent code display */
.parent-code {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 1rem;
    margin: 2rem auto 0 auto;
    text-align: center;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
    max-width: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    clear: both;
}

.parent-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4, #0ea5e9);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.parent-code small {
    display: block;
    color: #475569;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.code-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0ea5e9;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid #0ea5e9;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.code-value:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

.code-help {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.5;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .notification-actions {
        margin-left: 0;
        justify-content: center;
    }
    
    .analysis-content {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .career-suggestions {
        grid-template-columns: 1fr;
    }
    
    .parents-grid {
        grid-template-columns: 1fr;
    }
    
    .parent-card {
        flex-direction: column;
        text-align: center;
    }
    
    .parent-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    /* Mobile parent code display */
    .parent-code {
        margin: 1rem 0;
        padding: 1.25rem;
        max-width: 100%;
    }
    
    .code-value {
        font-size: 1.4rem;
        letter-spacing: 2px;
        padding: 0.75rem 1rem;
        min-width: 140px;
    }
    
    .code-display {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
}
    
    .games-modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .game-card {
        flex-direction: column;
        text-align: center;
    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
    }
}
