/* ===================================
   HustleGrad - Auth & Landing Styles
   =================================== */

/* ===================================
   Flash Messages
   =================================== */

.flash-messages {
    width: 100%;
    max-width: 36rem;
    margin: 1rem auto;
    padding: 0 1rem;
}

.flash-message {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.flash-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.flash-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    padding: 0;
    line-height: 1;
}

/* ===================================
   Navigation
   =================================== */

/* Header Left Container */
.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Secondary Navigation (EdTech, GroundOps) */
.secondary-nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .secondary-nav {
        display: flex;
    }
}

.secondary-nav-link {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 150ms ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background-color: var(--color-secondary-bg);
    border: 1px solid var(--color-border);
}

.secondary-nav-link:hover {
    color: var(--color-primary);
    background-color: #ffffff;
    border-color: var(--color-primary);
}

.secondary-nav-link i {
    font-size: 0.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-link {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-dark);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 150ms ease-in-out;
}

.nav-link:hover {
    color: var(--color-primary);
    background-color: var(--color-secondary-bg);
}

.nav-divider {
    width: 1px;
    height: 1.25rem;
    background-color: var(--color-border);
    margin: 0 0.25rem;
}

/* ===================================
   Landing Page - Hero Section
   =================================== */

.landing-container {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    padding: 2rem 1rem;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-title);
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-title .highlight {
    color: var(--color-primary);
    position: relative;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 32rem;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* ===================================
   Registration Cards
   =================================== */

.reg-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .reg-cards-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.reg-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.reg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.15);
}

.employer-card:hover {
    border-color: var(--color-primary);
}

.intern-card:hover {
    border-color: #6366f1;
}

.reg-card-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reg-card-icon svg {
    width: 2rem;
    height: 2rem;
    color: #d97706;
}

.reg-card-icon.intern-icon {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.reg-card-icon.intern-icon svg {
    color: #4f46e5;
}

.reg-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-title);
    margin-bottom: 0.75rem;
}

.reg-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.reg-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.reg-card-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    border-bottom: 1px solid #f3f4f6;
}

.reg-card-features li:last-child {
    border-bottom: none;
}

.reg-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* ===================================
   Login Prompt
   =================================== */

.login-prompt {
    text-align: center;
    padding: 1.5rem;
    color: var(--color-text-light);
}

.login-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

/* ===================================
   How It Works
   =================================== */

.how-it-works {
    padding: 3rem 1rem;
    text-align: center;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-title);
    margin-bottom: 2rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps-container {
        flex-direction: row;
        justify-content: center;
    }
}

.step {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    min-width: 150px;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 0.75rem;
}

.step h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-title);
    margin-bottom: 0.25rem;
}

.step p {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--color-border);
    transform: rotate(90deg);
}

@media (min-width: 768px) {
    .step-arrow {
        transform: rotate(0);
    }
}

/* ===================================
   Auth Forms
   =================================== */

.auth-container {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
}

.auth-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-title);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 0.75rem;
    background: #ffffff;
    color: var(--color-text-dark);
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input.error {
    border-color: #ef4444;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 0.75rem;
    background: #ffffff;
    color: var(--color-text-dark);
    resize: vertical;
    min-height: 100px;
    font-family: 'Inter', sans-serif;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===================================
   Govt Key Info Box
   =================================== */

.info-box {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border: 1px solid #7dd3fc;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-box-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 0.25rem;
}

.info-box-text {
    font-size: 0.8rem;
    color: #0c4a6e;
    line-height: 1.5;
}

/* ===================================
   Dashboard Styles
   =================================== */

.dashboard-container {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem;
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .dashboard-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-title);
}

.dashboard-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
}

.stat-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-title);
}

.stat-value.rating {
    color: var(--color-primary);
}

/* Task Cards */
.tasks-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tasks-grid {
    display: grid;
    gap: 1rem;
}

.task-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.task-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.task-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-title);
}

.task-budget {
    font-size: 1.125rem;
    font-weight: 700;
    color: #059669;
}

.task-company {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.task-description {
    font-size: 0.875rem;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.task-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: var(--color-secondary-bg);
    color: var(--color-text-dark);
}

.task-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
}

.status-open {
    background: #d1fae5;
    color: #065f46;
}

.status-assigned {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-pending_review {
    background: #fef3c7;
    color: #92400e;
}

.task-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-light);
}

.empty-state svg {
    width: 4rem;
    height: 4rem;
    color: var(--color-border);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.125rem;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

/* ===================================
   Rating Form Styles
   =================================== */

.rating-container {
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
}

.rating-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
}

.rating-header {
    text-align: center;
    margin-bottom: 2rem;
}

.rating-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-title);
    margin-bottom: 0.5rem;
}

.rating-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.rating-criteria {
    margin-bottom: 1.5rem;
}

.criteria-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.criteria-item:last-child {
    border-bottom: none;
}

.criteria-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 2rem;
    color: #d1d5db;
    transition: all 0.15s ease;
}

/* When a star is checked, color it and all stars after it (which appear before due to row-reverse) */
.star-rating input[type="radio"]:checked~label {
    color: #fbbf24;
}

/* On hover, color the hovered star and all after it */
.star-rating label:hover,
.star-rating label:hover~label {
    color: #fbbf24;
}

/* Reset stars after hover */
.star-rating:hover input[type="radio"]:checked~label {
    color: #d1d5db;
}

/* But keep the hover effect */
.star-rating:hover label:hover,
.star-rating:hover label:hover~label {
    color: #fbbf24;
}

/* Red Flags Section */
.red-flags-section {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.red-flags-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flag-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.flag-option input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #dc2626;
}

.flag-option label {
    font-size: 0.875rem;
    color: #7f1d1d;
}

/* Skills Badges */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
    font-weight: 500;
}

/* Intern/Employer Card in Listing */
.user-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.user-avatar {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-info {
    flex-grow: 1;
}

.user-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-title);
    margin-bottom: 0.25rem;
}

.user-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.user-rating .stars {
    color: #fbbf24;
}

.user-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Application Card */
.application-card {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.applicant-name {
    font-weight: 600;
    color: var(--color-text-title);
}

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

.application-proposal {
    font-size: 0.875rem;
    color: var(--color-text-dark);
    line-height: 1.5;
    margin-bottom: 1rem;
}