@import url('base.css');

html,
body {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98) 35%, #f8fbff 100%);
    color: #0f172a;
}

body {
    overflow-x: hidden;
}

.page-shell {
    position: relative;
    min-height: 100vh;
}

.page-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 78% 14%, var(--accent-soft), transparent 24%),
        radial-gradient(circle at 16% 78%, rgba(148, 163, 184, 0.14), transparent 22%);
    pointer-events: none;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
    margin-left: 64px;
    padding: 40px 32px 56px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 28px;
}

.hero-main,
.hero-side,
.section-card,
.metric-card,
.timeline-item,
.collaboration-shell {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.hero-main {
    border-radius: 36px;
    padding: 38px;
    position: relative;
    overflow: hidden;
}

.hero-main::after {
    content: '';
    position: absolute;
    inset: auto -80px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: var(--hero-gradient);
    opacity: 0.08;
}

.hero-side {
    border-radius: 36px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 8px var(--accent-soft);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 560px;
}

.hero-title {
    margin: 24px 0 18px;
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    font-weight: 950;
    font-style: italic;
}

.title-gradient {
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.9;
    color: #475569;
    word-break: keep-all;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.25s ease;
}

.action-link.primary {
    color: #fff;
    background: var(--hero-gradient);
    box-shadow: 0 18px 30px rgba(99, 102, 241, 0.22);
}

.action-link.secondary {
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.action-link:hover {
    transform: translateY(-2px);
}

.status-label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #94a3b8;
}

.status-value {
    margin: 18px 0 10px;
    font-size: clamp(3rem, 5vw, 4.6rem);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.06em;
    font-style: italic;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.status-chip i {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
}

.crew-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.crew-dot {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crew-dot:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.crew-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.section-grid {
    margin-bottom: 20px;
}

.metric-grid {
    margin-bottom: 20px;
}

.section-card,
.metric-card {
    border-radius: 28px;
    padding: 28px;
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 1.2rem;
}

.card-title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.card-text,
.metric-subtext,
.timeline-text {
    color: #64748b;
    line-height: 1.8;
    font-size: 14px;
    word-break: keep-all;
}

.metric-value {
    margin: 0 0 6px;
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.timeline-wrap {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.timeline-item {
    border-radius: 24px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.timeline-date {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.timeline-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 900;
}

.collaboration-shell {
    border-radius: 34px;
    padding: 28px;
}

.collaboration-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.group-chat-title {
    margin: 10px 0 6px;
    font-size: 2rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.05em;
    font-style: italic;
}

.group-chat-desc {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.group-chat-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.collaboration-grid {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr) 320px;
    gap: 20px;
}

.chat-column,
.board-column,
.calendar-column {
    background: #f8fbff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 20px;
    min-height: 780px;
}

.column-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.column-title {
    margin: 8px 0 0;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.04em;
    font-style: italic;
}

.column-badge {
    padding: 9px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.member-panel-title {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.member-panel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-panel-list--chat {
    margin-bottom: 16px;
}

.member-panel-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.member-panel-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
}

.member-panel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-panel-meta strong {
    display: block;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.member-panel-meta small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-panel-action,
.social-comment-submit,
.group-chat-submit {
    padding: 10px 14px;
    border-radius: 14px;
    border: none;
    background: var(--hero-gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
}

.group-chat-log {
    height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
    margin-bottom: 14px;
}

.group-chat-empty,
.social-feed-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.group-chat-bubble {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.group-chat-bubble__avatar,
.social-post__avatar {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 900;
}

.group-chat-bubble__avatar img,
.social-post__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-chat-bubble__body {
    padding: 14px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.group-chat-bubble__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.group-chat-bubble__meta strong,
.social-post__author strong {
    font-size: 13px;
    font-weight: 900;
}

.group-chat-bubble__meta span,
.social-post__author span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.group-chat-bubble__body p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.group-chat-form,
.social-composer {
    margin-top: 16px;
}

.social-composer__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.board-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.board-summary__item {
    padding: 12px 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.board-summary__item span {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.board-summary__item strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 950;
}

.social-upload-label,
.social-pin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.social-upload-label input,
.social-pin-toggle input {
    display: none;
}

.social-select {
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    outline: none;
}

.group-chat-input,
.social-composer__input {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    font: inherit;
    color: #0f172a;
    outline: none;
}

.group-chat-input:focus,
.social-composer__input:focus,
.social-comment-input:focus {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.group-chat-actions,
.social-composer__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
}

.group-chat-helper {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.social-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 18px;
}

.social-post {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    padding: 18px;
}

.social-post__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.social-post__tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-post__author {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.social-post__author div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-post__tag {
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.social-post__pin {
    padding: 8px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fdba74;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.social-post__content {
    margin-top: 14px;
    color: #334155;
    line-height: 1.8;
    font-size: 14px;
    word-break: break-word;
}

.social-post__admin {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.social-admin-btn {
    padding: 8px 12px;
    border-radius: 12px;
    background: #f8fbff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

.social-admin-btn--danger {
    color: #be123c;
    background: #fff1f2;
    border-color: #fecdd3;
}

.social-post__image-wrap {
    margin-top: 14px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.social-post__image {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.social-post__stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.social-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
}

.social-stat--like {
    cursor: pointer;
}

.social-stat--like.is-active {
    color: #e11d48;
    background: #fff1f2;
    border-color: #fecdd3;
}

.social-comments {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.social-comment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #eef2f7;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}

.social-comment strong {
    color: #0f172a;
    margin-right: 6px;
}

.social-comment__body {
    min-width: 0;
}

.social-comment__delete {
    flex-shrink: 0;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #be123c;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.social-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 12px;
}

.social-comment-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fbff;
    font: inherit;
    outline: none;
}

.social-comment-submit {
    padding: 12px 14px;
}

.group-chat-submit:disabled,
.group-chat-input:disabled,
.member-panel-action:disabled,
.social-composer__input:disabled,
.social-comment-input:disabled,
.social-comment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1280px) {
    .collaboration-grid {
        grid-template-columns: 1fr;
    }

    .chat-column,
    .board-column {
        min-height: auto;
    }
}

@media (max-width: 1100px) {
    .hero,
    .section-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content {
        margin-left: 0;
        padding: 84px 18px 36px;
    }

    .hero-main,
    .hero-side,
    .section-card,
    .metric-card,
    .timeline-item,
    .collaboration-shell,
    .chat-column,
    .board-column {
        border-radius: 24px;
    }

    .hero-main,
    .hero-side,
    .collaboration-shell,
    .chat-column,
    .board-column {
        padding: 18px;
    }

    .timeline-item,
    .social-comment-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .collaboration-head,
    .group-chat-actions,
    .social-composer__actions,
    .social-composer__toolbar,
    .column-head,
    .social-post__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .board-summary {
        grid-template-columns: 1fr;
    }

    .social-post__admin,
    .social-comment {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-column {
        border-radius: 24px;
        padding: 18px;
    }
}

/* Calendar Styles */
.calendar {
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.calendar-nav button:hover {
    background: var(--accent-soft);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
    position: relative;
}

.calendar-day:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.calendar-day.today {
    background: var(--accent);
    color: white;
}

.calendar-day.other-month {
    color: #94a3b8;
}

.calendar-day.has-note::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.calendar-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.calendar-modal.hidden {
    display: none;
}

.calendar-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.calendar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.calendar-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.calendar-note-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

.calendar-note-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.calendar-note-form button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.calendar-note-form .save-btn {
    background: var(--accent);
    color: white;
}

.calendar-note-form .cancel-btn {
    background: #f1f5f9;
    color: #64748b;
}
