/* =========================================================
   Secret Santa
   ========================================================= */

.secret-santa-page {
    min-height: calc(100vh - 100px);
}


/* Header */

.secret-santa-header {
    margin-bottom: 30px;
}

.secret-santa-icon {
    font-size: 64px;
    margin-bottom: 10px;
}

.secret-santa-header h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
}

.secret-santa-header p {
    margin-top: 10px;
    color: #666;
    font-size: 17px;
}


/* Main Card */

.secret-santa-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}


/* Title */

.card-title-section {
    text-align: center;
    margin-bottom: 25px;
}

.card-title-section h2 {
    margin: 0;
    font-size: 26px;
}

.card-title-section p {
    margin: 8px 0 0;
    color: #777;
}


/* Input */

.participant-input-row {
    display: flex;
    gap: 10px;
}

.participant-input {
    flex: 1;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid #d5d5d5;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.participant-input:focus {
    border-color: #888;
}


.add-participant-button {
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    background: #333;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.add-participant-button:hover {
    opacity: 0.9;
}


/* Error */

.participant-error {
    min-height: 22px;
    margin: 8px 0 0;
    color: #c62828;
    font-size: 14px;
}


/* Participants */

.participants-section {
    margin-top: 15px;
}

.participants-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.participants-heading span:last-child {
    min-width: 28px;
    padding: 3px 8px;
    border-radius: 20px;
    background: #f0f0f0;
    text-align: center;
    font-size: 13px;
}


.participant-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.participant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
}

.participant-name {
    font-weight: 500;
}


.remove-participant-button {
    border: none;
    background: transparent;
    color: #999;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.remove-participant-button:hover {
    color: #c62828;
}


.empty-participants {
    padding: 25px;
    border: 1px dashed #d5d5d5;
    border-radius: 10px;
    color: #888;
    text-align: center;
}


/* Draw Button */

.draw-button {
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    border: none;
    border-radius: 11px;
    background: #222;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.draw-button:hover {
    opacity: 0.92;
}

.draw-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* Results */

.results-section {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}


.results-header {
    text-align: center;
    margin-bottom: 20px;
}

.results-icon {
    font-size: 42px;
}

.results-header h2 {
    margin: 8px 0 0;
    font-size: 27px;
}

.results-header p {
    margin: 7px 0 0;
    color: #777;
}


/* Result List */

.results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 16px;
    border-radius: 11px;
    background: #f7f7f7;
}

.result-giver {
    font-weight: 700;
}

.result-arrow {
    color: #999;
}

.result-receiver {
    font-weight: 700;
}


/* New Draw */

.new-draw-button {
    width: 100%;
    margin-top: 20px;
    padding: 13px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.new-draw-button:hover {
    background: #f5f5f5;
}


/* Note */

.secret-note {
    margin: 25px 0 0;
    text-align: center;
    color: #777;
    font-size: 14px;
}


/* Mobile */

@media (max-width: 576px) {

    .secret-santa-header h1 {
        font-size: 34px;
    }

    .secret-santa-card {
        padding: 20px;
    }

    .participant-input-row {
        flex-direction: column;
    }

    .add-participant-button {
        width: 100%;
    }

    .result-item {
        flex-wrap: wrap;
    }

}