/* Turuncu Bilim — Product Design System */

:root {
    --ease-product: cubic-bezier(0.2, 0, 0, 1);
    --duration-fast: 150ms;
    --duration-normal: 200ms;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --btn-height: 44px;
    --text-primary: #1a1a1a;
    --text-secondary: #5c6670;
    --surface: #ffffff;
    --surface-muted: #f6f7f9;
    --border-subtle: rgba(15, 23, 42, 0.08);
}

/* Motion — purposeful only */
.teacher-main,
.admin-content {
    animation: productFadeIn var(--duration-normal) var(--ease-product);
}

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

/* Buttons */
.btn-product,
.btn-primary-custom {
    min-height: var(--btn-height);
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform var(--duration-fast) var(--ease-product),
        box-shadow var(--duration-fast) var(--ease-product),
        background var(--duration-fast) var(--ease-product);
}

.btn-product:active,
.btn-primary-custom:active {
    transform: scale(0.98);
}

.btn-product-primary {
    background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.28);
}

.btn-product-primary:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.34);
}

/* Login */
.login-trust-line {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 var(--space-4);
    line-height: 1.5;
}

.login-card {
    border: 1px solid var(--border-subtle);
}

.login-card .form-control,
.login-card .input-group-text {
    min-height: 46px;
    border-color: var(--border-subtle);
}

.login-card .form-control:focus {
    border-color: rgba(255, 107, 0, 0.45);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

/* Teacher home */
.teacher-home {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: var(--space-4) 0 var(--space-6);
}

.teacher-welcome {
    margin-bottom: var(--space-5);
}

.teacher-welcome h1 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-2);
    letter-spacing: -0.02em;
}

.teacher-welcome p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.teacher-section-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.teacher-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.teacher-class-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-fast) var(--ease-product),
        box-shadow var(--duration-fast) var(--ease-product),
        border-color var(--duration-fast) var(--ease-product);
}

.teacher-class-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 107, 0, 0.25);
    color: inherit;
}

.teacher-class-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--orange-light);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.teacher-class-card-body strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
}

.teacher-class-card-body span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.teacher-video-section {
    margin-top: var(--space-2);
}

/* Admin dashboard */
.admin-greeting h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
    color: var(--text-primary);
}

.admin-greeting p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.admin-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.admin-quick-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: border-color var(--duration-fast) var(--ease-product),
        box-shadow var(--duration-fast) var(--ease-product);
}

.admin-quick-action:hover {
    border-color: rgba(255, 107, 0, 0.35);
    box-shadow: var(--shadow-sm);
    color: var(--orange-dark);
}

.admin-stat-unified {
    background: var(--surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle) !important;
}

.admin-stat-unified .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-stat-unified .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.admin-stat-unified .stat-accent {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

/* Loading */
.is-loading-form .btn[type="submit"] {
    pointer-events: none;
    opacity: 0.75;
}

/* Empty states unified */
.empty-state {
    padding: 2.5rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px dashed var(--gray-300);
}

.admin-quick-action .nav-svg-icon,
.admin-quick-action svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .teacher-class-grid {
        grid-template-columns: 1fr;
    }
}
