/* CampusKind - Static Demo Styles */
/* UB Colors: Royal Blue #005BBB, White #FFFFFF, Soft Gray #F3F4F6 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ub-blue: #005BBB;
    --ub-white: #FFFFFF;
    --ub-gray: #F3F4F6;
    --ub-dark: #003d7a;
    --success: #10b981;
    --warning: #f59e0b;
    --border: #e5e7eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Layout */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page {
    min-height: 100vh;
    padding-bottom: 5rem;
}

/* Navigation */
nav {
    background: var(--ub-white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ub-blue);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: var(--ub-blue);
    text-decoration: none;
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--ub-blue);
    color: var(--ub-white);
}

.btn-primary:hover {
    background: var(--ub-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,91,187,0.3);
}

.btn-secondary {
    background: var(--ub-white);
    color: var(--ub-blue);
    border: 2px solid var(--ub-blue);
}

.btn-secondary:hover {
    background: var(--ub-gray);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--ub-blue);
    cursor: pointer;
    font-size: 1.25rem;
}

/* Cards */
.card {
    background: var(--ub-white);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.match-card {
    position: relative;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--ub-blue) 0%, var(--ub-dark) 100%);
    color: var(--ub-white);
    border-radius: 1.25rem;
}

.match-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.match-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    background: rgba(255,255,255,0.2);
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.tag-white {
    background: var(--ub-white);
    color: var(--ub-blue);
}

.tag-gray {
    background: var(--ub-gray);
    color: var(--text-dark);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--ub-blue);
}

/* Tag Buttons */
.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.tag-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border);
    background: var(--ub-white);
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tag-btn:hover {
    border-color: var(--ub-blue);
    color: var(--ub-blue);
}

.tag-btn.selected {
    background: var(--ub-blue);
    color: var(--ub-white);
    border-color: var(--ub-blue);
}

/* Progress */
.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--ub-gray);
    border-radius: 1rem;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--ub-blue);
    transition: width 0.3s ease;
    border-radius: 1rem;
}

/* Chat */
.chat-container {
    background: var(--ub-white);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.message-sent {
    align-items: flex-end;
}

.message-bubble {
    max-width: 75%;
    padding: 0.875rem 1rem;
    border-radius: 1.25rem;
    font-size: 0.9375rem;
}

.message-sent .message-bubble {
    background: var(--ub-blue);
    color: var(--ub-white);
    border-bottom-right-radius: 0.25rem;
}

.message-received .message-bubble {
    background: var(--ub-gray);
    color: var(--text-dark);
    border-bottom-left-radius: 0.25rem;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.chat-input {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ub-white);
    padding: 1rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.chat-input-container {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Events */
.event-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, var(--ub-white) 100%);
    border-left: 4px solid var(--ub-blue);
}

.event-card h4 {
    color: var(--ub-blue);
    margin-bottom: 0.5rem;
}

.event-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.4s ease;
}

.scale-in {
    animation: scaleIn 0.3s ease;
}

/* Footer */
footer {
    background: var(--ub-white);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 3rem;
}

.footer-input {
    margin-top: 1rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    width: 200px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--ub-white);
    border-radius: 1.25rem;
    padding: 2rem;
    max-width: 360px;
    width: 90%;
    animation: scaleIn 0.3s ease;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: var(--ub-blue);
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.py-2 { padding: 2rem 0; }

/* Mobile optimizations */
@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .container {
        padding: 0 0.75rem;
    }
}

/* Landing Page */
.hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
}

.hero-logo {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ub-blue) 0%, var(--ub-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--ub-blue);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 2rem auto;
}

/* Steps */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.step {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--border);
}

.step.active {
    background: var(--ub-blue);
    width: 2rem;
    border-radius: 1rem;
}

/* Success message */
.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.75rem;
    margin: 1rem 0;
    text-align: center;
}

/* Why matched tooltip */
.why-matched {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    font-size: 0.875rem;
}

/* Admin panel */
.admin-panel {
    padding: 2rem 1rem;
}

.table {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ub-white);
    border-radius: 0.75rem;
    overflow: hidden;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--ub-gray);
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-banned {
    background: #fee2e2;
    color: #991b1b;
}

.toggle-btn {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
}

