/* aspirations.css - unified with guestbook theme */

.aspirations-wrapper {
    position: relative;
    min-height: 100vh;
    padding: 160px 20px 80px;
    background: #f8fafc;
    overflow: hidden;
}

/* Abstract Shapes for background */
.bg-shape {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: float 10s ease-in-out infinite;
}
.bg-shape-1 {
    top: -10%; left: -10%;
    width: 500px; height: 500px;
    background: rgba(219, 39, 119, 0.2); /* var(--event-accent) base */
    border-radius: 50%;
}
.bg-shape-2 {
    bottom: -20%; right: -10%;
    width: 600px; height: 600px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(30px) scale(1.05); }
}

.aspirations-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.aspirations-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.aspirations-header p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.aspirations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .aspirations-grid {
        grid-template-columns: 1fr 1.2fr;
        align-items: start;
    }
}

/* Form Card (matching guestbook-card) */
.aspirations-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.05);
}

.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: #111827;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: 1px;
}

/* Modern Form Controls */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    letter-spacing: 0.3px;
}

.form-group label small {
    color: #94a3b8;
    font-weight: 400;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--event-accent, #db2777);
    outline: none;
    box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.1);
    background: #fff;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Type Toggle Buttons (Unified with form-control style) */
.type-toggle-wrapper {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.type-toggle-label {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.type-toggle-label input {
    position: absolute;
    opacity: 0;
}

.type-toggle-btn {
    padding: 16px 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.type-toggle-label:hover input:not(:checked) + .type-toggle-btn {
    border-color: #cbd5e1;
    background: #fff;
}

.type-toggle-label input:checked + .type-toggle-btn {
    border-color: var(--event-accent, #db2777);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.1);
}

.type-icon {
    font-size: 24px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.type-toggle-label input:checked + .type-toggle-btn .type-icon {
    color: var(--event-accent, #db2777);
}

.type-title {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.type-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.3;
}

.type-toggle-label input:checked + .type-toggle-btn .type-title {
    color: var(--event-accent, #db2777);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 30px;
    background: rgba(241, 245, 249, 0.5);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--event-accent, #db2777);
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
    cursor: pointer;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, var(--event-accent, #db2777) 0%, #be185d 100%);
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(219, 39, 119, 0.2);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(219, 39, 119, 0.3);
}

/* Public Board */
.board-header {
    margin-bottom: 24px;
}

.board-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #111827;
    letter-spacing: 1px;
}

.board-header p {
    color: #64748b;
    font-size: 1.05rem;
}

.board-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.board-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.board-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.board-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.board-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(219, 39, 119, 0.1);
    color: var(--event-accent, #db2777);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.board-badge.tag {
    background: #f1f5f9;
    color: #475569;
}

.board-date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.board-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 20px;
    font-style: italic;
}

.board-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.author-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
}

.empty-state i {
    font-size: 56px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.empty-state p {
    color: #64748b;
}

/* Alerts */
.success-alert {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideDown 0.5s ease-out;
}

.error-alert {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #ef4444;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideDown 0.5s ease-out;
}

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

@media(max-width: 768px) {
    .type-toggle-wrapper { flex-direction: column; }
    .aspirations-card { padding: 32px 24px; border-radius: 20px; }
    .aspirations-header h1 { font-size: 2.8rem; }
    .aspirations-wrapper { padding-top: 130px; }
}

/* Dark Mode Support */
[data-theme="dark"] .aspirations-wrapper {
    background: #0f172a;
}
[data-theme="dark"] .aspirations-card,
[data-theme="dark"] .board-item {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .aspirations-header h1,
[data-theme="dark"] .board-header h2,
[data-theme="dark"] .card-title {
    color: #f8fafc;
}
[data-theme="dark"] .aspirations-header p,
[data-theme="dark"] .board-header p {
    color: #94a3b8;
}
[data-theme="dark"] .form-group label {
    color: #e2e8f0;
}
[data-theme="dark"] .form-group label small {
    color: #64748b;
}
[data-theme="dark"] .form-control {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}
[data-theme="dark"] .form-control:focus {
    background: rgba(15, 23, 42, 0.9);
}
[data-theme="dark"] .type-toggle-btn {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .type-toggle-label:hover input:not(:checked) + .type-toggle-btn {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .type-toggle-label input:checked + .type-toggle-btn {
    background: #1e293b;
    border-color: var(--event-accent, #db2777);
}
[data-theme="dark"] .type-title,
[data-theme="dark"] .board-author .author-name {
    color: #e2e8f0;
}
[data-theme="dark"] .type-desc {
    color: #94a3b8;
}
[data-theme="dark"] .checkbox-group {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .checkbox-group label {
    color: #cbd5e1;
}
[data-theme="dark"] .board-text {
    color: #cbd5e1;
}
[data-theme="dark"] .board-author {
    border-top-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .board-badge.tag {
    background: rgba(255,255,255,0.1);
    color: #cbd5e1;
}
[data-theme="dark"] .author-pic {
    background: rgba(255,255,255,0.1);
}
[data-theme="dark"] .empty-state {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .empty-state h3 {
    color: #f8fafc;
}
