/* student.css - Premium Student Help Redesign */

:root {
    --student-primary: #176BFF;
    --student-primary-glow: rgba(23, 107, 255, 0.3);
    --student-bg: #F8FAFC;
    --student-card-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

/* Background Shapes Customization */
.background-shapes .shape-1 { background: rgba(23, 107, 255, 0.05); }

/* Centered Layout Wrapper */
.explainer-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
    min-height: calc(100vh - 160px);
}

.explainer-container {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

/* Focused Premium Card */
.focused-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--student-card-shadow);
    border: 1px solid #F1F5F9;
}

/* Header Redesign */
.page-header {
    text-align: center;
    flex-direction: column;
    margin-bottom: 40px;
    gap: 16px;
}

.header-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0 auto;
    background: #EFF6FF;
    color: var(--student-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(23, 107, 255, 0.1);
}

.header-icon i { font-size: 32px; }

.header-text h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 8px;
}

.header-text p {
    font-size: 16px;
    color: #64748B;
}

/* Premium Action Line Upgrade (Animated Pill) */
.input-action-line {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
    padding: 10px 24px;
    border-radius: 99px;
    background: transparent;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    flex-wrap: wrap;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUpAction 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
    border: 1px solid transparent;
}

.input-action-line:hover {
    background: rgba(23, 107, 255, 0.04);
    border-color: rgba(23, 107, 255, 0.08);
    box-shadow: 0 4px 15px rgba(23, 107, 255, 0.03);
}

.action-item {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: default;
}

.action-item:hover {
    transform: scale(1.1);
    color: var(--student-primary);
}

.action-item i {
    font-size: 18px;
    color: var(--student-primary);
    opacity: 0.8;
    transition: filter 0.3s;
}

.action-item:hover i {
    filter: drop-shadow(0 0 5px var(--student-primary-glow));
}

.action-dot {
    opacity: 0.3;
    font-weight: 400;
}

.action-dash {
    opacity: 0.2;
    margin: 0 6px;
    font-weight: 400;
}

/* Premium Shimmering Text */
.action-promo {
    background: linear-gradient(
        to right,
        #2563EB 20%,
        #7DD3FC 40%,
        #7DD3FC 60%,
        #2563EB 80%
    );
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    font-weight: 700;
}

@keyframes fadeInUpAction {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
    to { background-position: 200% center; }
}

@media (max-width: 480px) {
    .input-action-line { gap: 8px; font-size: 12px; padding: 8px 16px; width: 100%; border-radius: 12px; }
    .action-dash { display: none; }
    .action-promo { width: 100%; margin-top: 4px; font-size: 11px; }
}

/* Modern Upload Area */
.premium-drop-zone {
    border: 2px dashed #E2E8F0;
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    background: #F8FAFC;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.premium-drop-zone:hover {
    border-color: var(--student-primary);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(23, 107, 255, 0.05);
}

.premium-drop-zone.drag-active {
    border-color: var(--student-primary);
    background: #EFF6FF;
    transform: scale(1.02);
}

.drop-icon-wrapper {
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.drop-icon-wrapper i {
    font-size: 48px;
    color: #94A3B8;
    transition: color 0.3s;
}

.premium-drop-zone:hover .drop-icon-wrapper i { color: var(--student-primary); }

.drop-text-primary {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.drop-text-secondary {
    font-size: 13px;
    color: #94A3B8;
}

/* FILE PREVIEW */
.file-preview-pill {
    display: none;
    align-items: center;
    gap: 12px;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    padding: 10px 16px;
    border-radius: 99px;
    margin: 20px auto 0;
    max-width: fit-content;
    animation: slideUp 0.3s ease;
}

.file-preview-pill i { color: #059669; font-size: 20px; }
.file-preview-pill .filename { font-size: 14px; font-weight: 600; color: #065F46; }
.remove-file-btn { background: none; border: none; cursor: pointer; color: #991B1B; display: flex; align-items: center; padding: 2px; }

/* Textarea Redesign */
.input-divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.input-divider::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 100%; height: 1px;
    background: #F1F5F9;
    z-index: 1;
}

.input-divider span {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-textarea-group {
    position: relative;
    margin-bottom: 32px;
}

.premium-textarea {
    width: 100%;
    min-height: 120px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid #E2E8F0;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #0F172A;
    resize: none;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.premium-textarea:focus {
    outline: none;
    border-color: var(--student-primary);
    box-shadow: 0 0 0 4px var(--student-primary-glow);
}

/* Language Selection Group */
.form-row-compact {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.compact-select-wrapper {
    background: #F1F5F9;
    padding: 4px 6px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.compact-select-wrapper:within-focus { background: #E2E8F0; }

.compact-select-wrapper i { color: #64748B; font-size: 18px; margin-left: 8px; }
.compact-select {
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    padding: 8px 12px;
    outline: none;
    cursor: pointer;
}

/* BIG PREMIUM EXPLAIN BUTTON */
.btn-explain-premium {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #176BFF 0%, #0D4EBD 100%);
    color: #ffffff;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(23, 107, 255, 0.25);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-explain-premium:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(23, 107, 255, 0.35);
}

.btn-explain-premium:active:not(:disabled) { transform: translateY(0); }

.btn-explain-premium:disabled {
    background: #E2E8F0;
    cursor: not-allowed;
    box-shadow: none;
    color: #94A3B8;
}

/* Small Sidebar Toggle/Inspiration */
.inspiration-section {
    margin-top: 48px;
    text-align: center;
}

.inspiration-toggle {
    font-size: 14px;
    font-weight: 600;
    color: var(--student-primary);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.inspiration-content {
    display: none;
    margin-top: 24px;
    animation: fadeIn 0.4s ease;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .explainer-wrapper { padding: 40px 16px; }
    .focused-card { padding: 32px 24px; }
    .header-text h1 { font-size: 26px; }
}
