/* High School Continuum - Main Stylesheet */

:root {
    --school-blue: #1e3a8a;
    --school-gold: #fbbf24;
    --paper-white: #fffef7;
    --notebook-lines: #e0e7ff;
    --ink-blue: #1e293b;
    --eraser-pink: #fda4af;
    --chalk-white: #f8fafc;
    --blackboard: #0f172a;
    --locker-gray: #6b7280;
    --redlink: #dc2626;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(180deg, #dbeafe 0%, #fef3c7 100%);
    min-height: 100vh;
    color: var(--ink-blue);
}

/* School Header */
.school-header {
    background: var(--school-blue);
    color: var(--chalk-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 3px solid var(--school-gold);
}

.school-crest {
    width: 80px;
    height: 80px;
}

.crest-shield {
    width: 100%;
    height: 100%;
    background: var(--school-gold);
    clip-path: polygon(50% 0%, 100% 30%, 100% 70%, 50% 100%, 0% 70%, 0% 30%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--school-blue);
    font-weight: bold;
}

.crest-year {
    font-size: 10px;
}

.crest-date {
    font-size: 14px;
}

.crest-initials {
    font-size: 20px;
    margin-top: 5px;
}

.school-title {
    flex: 1;
    text-align: center;
}

.school-title h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.school-motto {
    font-style: italic;
    color: var(--school-gold);
    margin-top: 0.5rem;
}

.header-info {
    text-align: right;
    font-size: 0.9rem;
}

.current-period {
    font-weight: bold;
    color: var(--school-gold);
}

.current-time {
    margin: 0.25rem 0;
}

.school-day {
    opacity: 0.9;
}

/* Main Navigation */
.main-nav {
    background: var(--blackboard);
    display: flex;
    justify-content: center;
    padding: 0;
}

.nav-link {
    color: var(--chalk-white);
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(251, 191, 36, 0.1);
    color: var(--school-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--school-gold);
    transform: translateX(-50%);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 80%;
}

.special-link {
    background: linear-gradient(135deg, var(--school-gold), #f59e0b);
    color: var(--school-blue);
    font-weight: bold;
}

/* Announcement Banner */
.announcement-banner {
    background: var(--school-gold);
    color: var(--school-blue);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 500;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.announcement-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.announcement-close {
    background: none;
    border: none;
    color: var(--school-blue);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.announcement-close:hover {
    opacity: 1;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.welcome-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Bulletin Board */
.bulletin-board {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
}

.bulletin-board::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 30px;
    height: 30px;
    background: #c0c0c0;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.bulletin-board h2 {
    color: var(--chalk-white);
    margin-bottom: 1rem;
}

.pinned-notes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sticky-note {
    width: 150px;
    min-height: 150px;
    padding: 1rem;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    position: relative;
    transition: transform 0.3s;
}

.sticky-note:hover {
    transform: scale(1.05) !important;
}

.sticky-note.yellow {
    background: linear-gradient(135deg, #fff9c4, #ffeb3b);
}

.sticky-note.pink {
    background: linear-gradient(135deg, #fce4ec, #f48fb1);
}

.sticky-note.blue {
    background: linear-gradient(135deg, #e1f5fe, #4fc3f7);
}

.redlink {
    color: var(--redlink);
    text-decoration: underline;
    text-decoration-style: wavy;
}

/* Quick Stats */
.quick-stats {
    background: var(--paper-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.quick-stats h2 {
    color: var(--school-blue);
    margin-bottom: 1rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--school-blue), #3b82f6);
    color: var(--chalk-white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--school-gold);
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.content-card {
    background: var(--paper-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    background-image: repeating-linear-gradient(
        180deg,
        transparent,
        transparent 28px,
        var(--notebook-lines) 28px,
        var(--notebook-lines) 30px
    );
}

.content-card h3 {
    color: var(--school-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--school-gold);
}

/* Create Section */
.create-character {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.character-input, .grade-select {
    padding: 0.75rem;
    border: 2px solid var(--notebook-lines);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--chalk-white);
    transition: border-color 0.3s;
}

.character-input:focus, .grade-select:focus {
    outline: none;
    border-color: var(--school-blue);
}

.create-btn {
    background: linear-gradient(135deg, var(--school-gold), #f59e0b);
    color: var(--school-blue);
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.create-btn:hover {
    transform: translateY(-2px);
}

.starter-links {
    padding-top: 1rem;
    border-top: 1px dashed var(--notebook-lines);
}

.story-link {
    color: var(--school-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.story-link:hover {
    color: var(--school-gold);
}

/* Activity Feed */
.feed-items {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.feed-item {
    padding: 0.75rem;
    border-left: 3px solid var(--school-gold);
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.5);
    animation: fadeIn 0.5s;
}

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

.feed-time {
    font-size: 0.85rem;
    color: var(--locker-gray);
    display: block;
    margin-bottom: 0.25rem;
}

.feed-text {
    color: var(--ink-blue);
}

.feed-text a {
    color: var(--school-blue);
    text-decoration: none;
    font-weight: 500;
}

.feed-text a:hover {
    text-decoration: underline;
}

.load-more {
    width: 100%;
    padding: 0.75rem;
    background: var(--school-blue);
    color: var(--chalk-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
}

.load-more:hover {
    background: var(--blackboard);
}

/* Trending Section */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    transition: transform 0.3s;
}

.trending-item:hover {
    transform: translateX(5px);
}

.trend-rank {
    width: 30px;
    height: 30px;
    background: var(--school-gold);
    color: var(--school-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.trend-badge {
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    background: var(--eraser-pink);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Hall Pass */
.hall-pass-btn {
    width: 100%;
    padding: 2rem;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 1rem 0;
}

.hall-pass-btn:hover {
    transform: scale(1.05);
}

.pass-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.recent-discoveries {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--notebook-lines);
}

.small-text {
    font-size: 0.85rem;
    color: var(--locker-gray);
    margin-bottom: 0.5rem;
}

.discovery-list {
    list-style: none;
    padding-left: 1rem;
}

.discovery-list li {
    margin: 0.5rem 0;
}

.discovery-list li::before {
    content: "→ ";
    color: var(--school-gold);
}

/* Yearbook Section */
.yearbook-preview {
    background: var(--paper-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.yearbook-preview h2 {
    color: var(--school-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.yearbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.yearbook-entry {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f0f0, #ffffff);
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}

.yearbook-entry:hover {
    transform: scale(1.05);
}

.yearbook-photo {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.signature {
    font-family: 'Brush Script MT', cursive;
    font-size: 1.2rem;
    color: var(--ink-blue);
    transform: rotate(-2deg);
}

.add-signature {
    border: 2px dashed var(--notebook-lines);
    opacity: 0.7;
}

.add-signature:hover {
    opacity: 1;
}

/* Footer */
.school-footer {
    background: var(--blackboard);
    color: var(--chalk-white);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--school-gold);
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: var(--chalk-white);
    text-decoration: none;
    padding: 0.25rem 0;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--school-gold);
}

.footer-motto {
    font-style: italic;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--school-gold), #f59e0b);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fab span {
    font-size: 1.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--paper-white);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--locker-gray);
}

.modal-close:hover {
    color: var(--school-blue);
}

.quick-create-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.quick-option {
    padding: 1.5rem;
    background: var(--school-blue);
    color: var(--chalk-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.quick-option:hover {
    background: var(--blackboard);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .school-title h1 {
        font-size: 1.5rem;
    }
    
    .main-nav {
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .welcome-section {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .yearbook-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-create-options {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--notebook-lines);
}

::-webkit-scrollbar-thumb {
    background: var(--school-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blackboard);
}