/* 
 * alumn.in - Main Layout CSS
 */

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    height: 64px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sos-pulse {
    border: 1.5px solid var(--emergency-red);
    border-radius: 50%;
    padding: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 24px 0;
    /* Extra padding for iPhone notches */
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    gap: 4px;
}

.nav-item.active {
    color: var(--accent-primary);
}

.nav-item img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.nav-item.active img {
    opacity: 1;
    filter: drop-shadow(0 0 4px var(--accent-primary));
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hidden {
    display: none;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    padding: 24px;
    border-radius: 20px;
    text-align: center;
}

.sos-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.sos-opt-btn {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
}

/* Directory & Network UI */
.search-container {
    margin-bottom: 20px;
}

.search-bar {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
}

.alumni-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.alumni-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 16px;
    transition: transform 0.2s;
}

.alumni-card:active {
    transform: scale(0.98);
}

.avatar-md {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.alumni-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.alumni-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.badge-tag {
    font-size: 0.7rem;
    padding: 4px 8px;
    background: var(--accent-secondary);
    border-radius: 6px;
    color: var(--accent-primary);
    font-weight: 600;
}

.sos-opt-btn:active {
    background: var(--emergency-red);
    color: white;
}

/* Home Dashboard Components */
.dashboard-container {
    padding: 20px;
    padding-bottom: 100px;
    /* Space for bottom nav */
}

/* Hero Section */
.hero-card {
    background: linear-gradient(135deg, var(--accent-primary), #5e5ce6);
    border-radius: 20px;
    padding: 24px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-card h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Celebration Widget */
.celebrations-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.celebration-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.celebration-scroll::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar Chrome/Safari */

.celebration-card {
    min-width: 140px;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s;
}

.celebration-card:active {
    transform: scale(0.95);
}

.avatar-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 12px;
    padding: 3px;
    border: 2px solid var(--accent-primary);
}

.avatar-ring.anniversary {
    border-color: #ff9500;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.celebrant-name {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.celebration-type {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Activity Feed */
.activity-card {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.activity-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Auth Screens */
.auth-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    text-align: center;
}

.auth-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--accent-primary);
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

.auth-footer {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}