/* Explore Page Styles */
.explore-container {
    padding: 120px 8% 80px;
    background: #ECF4E5;
    min-height: 100vh;
    animation: fadeIn 0.8s ease-out;
    width: 100%;
    overflow-x: hidden;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-mist);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumbs span[aria-current="page"] {
    color: var(--text-main);
    font-weight: 500;
}

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

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

/* Hero Section */
.explore-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.explore-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.explore-hero p {
    font-size: 1.2rem;
    color: var(--text-mist);
    max-width: 600px;
    margin: 0 auto;
}

/* Toggle Switch */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.toggle-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 99px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-mist);
}

.toggle-btn.active {
    background: var(--maroon-grad);
    color: white;
}

/* Filter Section */
.filter-card {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.search-bar {
    position: relative;
    margin-bottom: 2rem;
}

.search-bar .search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-mist);
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(179, 82, 106, 0.1);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 150px;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.filter-input,
.filter-select {
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(179, 82, 106, 0.1);
}

.filter-select {
    cursor: pointer;
}

.filter-options-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.category-chips {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.chip {
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-mist);
}

.chip.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sort-dropdown select {
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.project-card {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-open {
    background: rgba(52, 211, 153, 0.2);
    color: #059669;
}

.status-full {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
}

.match-badge {
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.project-info h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}

.author-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-mist);
    margin-bottom: 1rem;
}

.project-desc {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(124, 92, 180, 0.1);
    color: #7c5cb4;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    gap: 1rem;
}

.card-footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
}

.members-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-mist);
    font-weight: 500;
}

.timeline-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-mist);
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.timeline-badge i {
    width: 14px;
    height: 14px;
}

.btn-apply {
    background: white;
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.6rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.btn-apply:hover {
    background: var(--maroon-grad);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(179, 82, 106, 0.2);
    transform: translateY(-2px);
}

/* Applied state */
.btn-apply[disabled] {
    background: #dcfce7;
    /* light green */
    color: #166534;
    /* dark green text */
    border-color: rgba(22, 101, 52, 0.3);
    cursor: default;
    box-shadow: none;
    transform: none;
}

/* Team Full button state (distinct from "Applied" green) */
.btn-apply.btn-team-full,
.btn-apply-modal.btn-team-full {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.85;
}

/* My Projects actions */
.my-project-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Like Button */
.btn-like {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--text-mist);
    padding: 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 38px;
}

.btn-like:hover {
    color: #e11d48;
    transform: translateY(-2px);
}

.btn-like svg {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), fill 0.2s ease, stroke 0.2s ease;
}

.btn-like:active svg {
    transform: scale(0.85);
}

.btn-like.liked {
    color: #e11d48;
    background: transparent;
}

.btn-like.liked svg {
    fill: #e11d48;
    stroke: #e11d48;
}

.btn-like.liked:hover {
    background: transparent;
}

.btn-like .like-count {
    font-size: 13px;
    font-weight: 700;
}

/* Animation for liking */
@keyframes heartBurst {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.btn-like.animate-like svg {
    animation: heartBurst 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-my-edit,
.btn-my-delete {
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--text-main);
}

.btn-my-edit:hover {
    border-color: rgba(179, 82, 106, 0.35);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-my-delete {
    border-color: rgba(239, 68, 68, 0.35);
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.06);
}

.btn-my-delete:hover {
    background: rgba(239, 68, 68, 0.12);
    transform: translateY(-1px);
}

/* Empty State for Posted Ideas */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 2rem;
    animation: fadeIn 0.6s ease-out;
}

.empty-emoji {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.empty-state-container h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.empty-state-container p {
    font-size: 1.1rem;
    color: var(--text-mist);
    max-width: 400px;
}

/* Loading State */
.projects-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(179, 82, 106, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.projects-loading p {
    color: var(--text-mist);
    font-size: 1.1rem;
}

/* Skeleton Loading for Project Cards */
.project-card-skeleton {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.skeleton-line {
    height: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-line.long {
    width: 100%;
}

/* Empty State */
.projects-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 2rem;
    animation: fadeIn 0.6s ease-out;
}

.projects-empty .empty-emoji {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.projects-empty h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.projects-empty p {
    font-size: 1.1rem;
    color: var(--text-mist);
    max-width: 400px;
}

/* Notifications Page Styles */
.notifications-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
}

.notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 0.6s ease-out;
}

.notifications-empty .empty-emoji {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.notifications-empty h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.notifications-empty p {
    font-size: 1.1rem;
    color: var(--text-mist);
    max-width: 400px;
}

.notification-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.notification-item:hover {
    transform: translateY(-2px);
}

.notification-unread {
    border-left: 4px solid var(--primary-color);
}

.notification-dot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 10;
}

.btn-mark-all-read {
    transition: all 0.2s ease;
}

.btn-mark-all-read:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(179, 82, 106, 0.2);
}

/* Project Detail Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2001;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2002;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.modal-body {
    padding: 2rem 2.5rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-section p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1.05rem;
}

.category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(124, 92, 180, 0.1);
    color: #7c5cb4;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.roles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-tag {
    background: rgba(179, 82, 106, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-footer {
    padding: 1.5rem 2.5rem 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: flex-end;
}

.btn-apply-modal {
    background: var(--maroon-grad);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-apply-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(179, 82, 106, 0.3);
}

.posted-date {
    color: var(--text-mist);
    font-size: 0.85rem;
}

.project-card {
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

/* Application Modal */
/* Own project button state */
.btn-apply.btn-own-project {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-mist);
    border-color: rgba(0, 0, 0, 0.1);
    cursor: default;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
    font-size: 0.8rem;
}

/* ==========================================
   Application Modal — Redesigned 
   ========================================== */
.application-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease-out;
}

.application-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 2001;
    animation: slideUpModal 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

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

/* Hero Header */
.apply-modal-hero {
    position: relative;
    padding: 2rem 2rem 1.5rem;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.apply-modal-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--maroon-grad);
    opacity: 0.08;
}

.apply-modal-hero-content {
    position: relative;
    z-index: 1;
}

.apply-modal-category {
    display: inline-block;
    background: rgba(179, 82, 106, 0.12);
    color: var(--primary-color);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.apply-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.apply-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-mist);
    font-size: 0.85rem;
}

.apply-modal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Skills Match */
.apply-skills-match {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.apply-skills-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.apply-skills-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apply-skills-percent {
    font-size: 0.85rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 20px;
}

.apply-skills-percent.match-high {
    background: #dcfce7;
    color: #16a34a;
}

.apply-skills-percent.match-mid {
    background: #fef9c3;
    color: #ca8a04;
}

.apply-skills-percent.match-low {
    background: #fef2f2;
    color: #dc2626;
}

.apply-skills-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

.apply-skills-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.apply-skills-bar-fill.match-high {
    background: #16a34a;
}

.apply-skills-bar-fill.match-mid {
    background: #ca8a04;
}

.apply-skills-bar-fill.match-low {
    background: #dc2626;
}

.apply-skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.apply-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.apply-skill-tag.skill-matched {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.apply-skill-tag.skill-unmatched {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-mist);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Application Form */
.application-form {
    padding: 1.5rem 2rem 2rem;
}

.application-form .form-group {
    margin-bottom: 1.3rem;
}

.application-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.45rem;
}

.required-star {
    color: #dc2626;
    font-weight: 700;
}

.application-form textarea.form-control {
    min-height: 110px;
    resize: vertical;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: rgba(0, 0, 0, 0.01);
}

.application-form textarea.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(179, 82, 106, 0.1);
    outline: none;
}

.application-form select.form-control {
    border-radius: 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    cursor: pointer;
}

.application-form select.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(179, 82, 106, 0.1);
    outline: none;
}

.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-mist);
    margin-top: 0.35rem;
    opacity: 0.7;
}

/* Profile Snapshot */
.apply-profile-snapshot {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.apply-profile-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
}

.apply-profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--maroon-grad);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.apply-profile-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-main);
}

.apply-profile-sub {
    font-size: 0.8rem;
    color: var(--text-mist);
    margin-top: 1px;
}

.apply-profile-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.apply-update-profile {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.3rem 0;
    transition: opacity 0.2s ease;
}

.apply-update-profile:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Footer Buttons */
.application-form .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-cancel {
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    background: white;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-cancel:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.2);
}

.btn-submit-application {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 1.6rem;
    border-radius: 12px;
    border: none;
    background: var(--maroon-grad);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-submit-application:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(179, 82, 106, 0.3);
}

.btn-submit-application:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.text-muted {
    color: var(--text-mist);
    font-size: 0.9rem;
}

/* Application Success Screen */
.application-success-screen {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.4s ease-out;
}

.success-icon {
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease-out;
}

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

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.application-success-screen h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.success-message {
    font-size: 1.1rem;
    color: var(--text-mist);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-message strong {
    color: var(--primary-color);
}

.success-next-steps {
    text-align: left;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.success-next-steps h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.success-next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.success-next-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.success-next-steps li i {
    width: 20px;
    height: 20px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.success-actions .btn-primary {
    padding: 0.9rem 2rem;
    border-radius: 12px;
    border: none;
    background: var(--maroon-grad);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.success-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(179, 82, 106, 0.3);
}

.success-actions .btn-secondary {
    padding: 0.9rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: white;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.success-actions .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Team Members Styles */
.team-members-list {
    margin-top: 1rem;
}

.team-loading {
    color: var(--text-mist);
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
}

.team-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: background 0.2s ease;
}

.team-member-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.team-member-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.team-member-avatar,
.team-member-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.team-member-avatar {
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.team-member-avatar-placeholder {
    background: var(--maroon-grad);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.team-member-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.creator-badge {
    background: rgba(179, 82, 106, 0.2);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.team-member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.team-skill-tag {
    background: rgba(124, 92, 180, 0.1);
    color: #7c5cb4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.team-skill-more {
    color: var(--text-mist);
    font-size: 0.7rem;
    font-weight: 500;
}

.team-member-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-view-member-profile,
.btn-remove-member,
.btn-leave-team {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-view-member-profile:hover {
    background: rgba(179, 82, 106, 0.1);
    color: var(--primary-color);
}

.btn-remove-member:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.btn-leave-team:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.btn-view-member-profile i,
.btn-remove-member i,
.btn-leave-team i {
    width: 16px;
    height: 16px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* ========================================
   Explore Responsive
   ======================================== */
@media (max-width: 768px) {
    .explore-container {
        padding: 100px 15px 60px;
        width: 100%;
    }

    .explore-hero h1 {
        font-size: 2.2rem;
    }

    .explore-hero p {
        font-size: 1rem;
    }

    .filter-card {
        padding: 1.25rem;
        border-radius: 18px;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 100%;
    }

    .search-bar input {
        padding: 0.9rem 1rem 0.9rem 2.8rem;
        font-size: 0.95rem;
    }

    .filter-options {
        gap: 1rem;
    }

    .filter-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-group {
        min-width: unset;
        width: 100%;
    }

    .filter-input,
    .filter-select {
        font-size: 0.9rem;
        padding: 0.65rem 0.9rem;
    }

    .filter-options-bottom {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .category-chips {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-chips::-webkit-scrollbar {
        display: none;
    }

    .chip {
        flex-shrink: 0;
        padding: 0.45rem 0.9rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .sort-dropdown {
        width: 100%;
    }

    .sort-dropdown select {
        width: 100%;
        padding: 0.65rem 1rem;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }

    .project-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .project-info h2 {
        font-size: 1.2rem;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-apply {
        width: 100%;
        text-align: center;
    }

    /* Modals */
    .project-modal,
    .application-modal {
        padding: 0;
    }

    .modal-content,
    .application-modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
        align-self: flex-end;
    }

    .modal-header {
        padding: 2rem 1.5rem 1rem;
    }

    .modal-header h1 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem 1.5rem;
    }

    .application-form {
        padding: 1.2rem 1.5rem 1.5rem;
    }

    .apply-modal-hero {
        padding: 1.5rem 1.5rem 1.2rem;
    }

    .apply-modal-title {
        font-size: 1.25rem;
    }

    .apply-modal-meta {
        gap: 0.6rem;
        font-size: 0.8rem;
    }

    .apply-skills-match {
        padding: 0.9rem 1rem;
    }

    .apply-profile-snapshot {
        padding: 0.9rem 1rem;
    }

    .view-toggle {
        gap: 0.5rem;
    }

    .toggle-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* My Project Actions */
    .my-project-actions {
        width: 100%;
        justify-content: stretch;
    }

    .btn-my-edit,
    .btn-my-delete {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .explore-container {
        padding: 90px 10px 40px;
    }

    .explore-hero {
        margin-bottom: 2.5rem;
    }

    .explore-hero h1 {
        font-size: 1.8rem;
    }

    .filter-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .search-bar {
        margin-bottom: 1rem;
    }

    .search-bar input {
        padding: 0.8rem 0.9rem 0.8rem 2.6rem;
        font-size: 0.88rem;
    }

    .filter-label {
        font-size: 0.82rem;
    }

    .project-card {
        padding: 1.25rem;
    }

    .project-desc {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .members-count {
        font-size: 0.8rem;
    }

    .modal-content,
    .application-modal-content {
        border-radius: 12px 12px 0 0;
    }

    .empty-state-container,
    .projects-empty,
    .notifications-empty {
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }

    .empty-state-container h2,
    .projects-empty h2,
    .notifications-empty h2 {
        font-size: 1.5rem;
    }
}