/* Event Report Cards Styles */

.events-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Code Redemption */
.code-redemption-card {
    background: linear-gradient(135deg, var(--cream-pop) 0%, #FFE5F1 100%);
    border: 4px solid var(--deep-ink);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 8px 8px 0 var(--hot-pink);
}

.redemption-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--deep-ink);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 var(--electric-cyan);
}

.redemption-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.code-input {
    flex: 1;
    padding: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 3px;
    background: white;
    border: 3px solid var(--deep-ink);
    border-radius: 10px;
    transition: all 0.2s;
}

.code-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--neon-yellow);
    transform: scale(1.02);
}

.redeem-button {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--hot-pink), var(--neon-yellow));
    border: 3px solid var(--deep-ink);
    border-radius: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: var(--deep-ink);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.redeem-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 var(--deep-ink);
}

/* Report Card Display */
.report-card {
    background: white;
    border: 4px solid var(--deep-ink);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 6px 6px 0 var(--electric-cyan);
    animation: slideIn 0.5s ease-out;
}

.report-header {
    background: linear-gradient(135deg, var(--hot-pink), var(--electric-cyan));
    padding: 2rem;
    text-align: center;
    border-bottom: 4px solid var(--deep-ink);
}

.report-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-shadow: 3px 3px 0 var(--deep-ink);
    margin: 0;
}

.report-date {
    font-family: 'Comic Neue', cursive;
    font-size: 1.1rem;
    color: white;
    margin-top: 0.5rem;
}

.report-type {
    display: inline-block;
    background: var(--neon-yellow);
    color: var(--deep-ink);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--deep-ink);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Grades Section */
.report-grades {
    padding: 2rem;
    background: var(--cream-pop);
    border-bottom: 3px dashed var(--deep-ink);
}

.report-grades h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--deep-ink);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.grade-item {
    background: white;
    padding: 1rem;
    border: 3px solid var(--deep-ink);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.grade-item:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 0 var(--deep-ink);
}

.grade-category {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--deep-ink);
}

.grade-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Feedback Section */
.report-feedback {
    padding: 2rem;
    background: white;
}

.report-feedback h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--deep-ink);
    margin-bottom: 1.5rem;
}

.feedback-section {
    margin-bottom: 1.5rem;
}

.feedback-section h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--hot-pink);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.feedback-list {
    list-style: none;
    padding: 0;
}

.feedback-list li {
    font-family: 'Comic Neue', cursive;
    font-size: 1.1rem;
    color: var(--deep-ink);
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.feedback-list li::before {
    content: '✨';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.feedback-notes {
    background: var(--cream-pop);
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid var(--deep-ink);
}

.feedback-notes h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--deep-ink);
    margin-bottom: 0.5rem;
}

.feedback-notes p {
    font-family: 'Comic Neue', cursive;
    color: var(--deep-ink);
    line-height: 1.6;
}

/* Achievements */
.report-achievements {
    padding: 2rem;
    background: linear-gradient(45deg, #FFE5F1, var(--cream-pop));
    border-top: 3px dashed var(--deep-ink);
}

.report-achievements h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--deep-ink);
    margin-bottom: 1.5rem;
    text-align: center;
}

.achievement-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.achievement-badge {
    background: white;
    border: 3px solid var(--deep-ink);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.achievement-badge:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--neon-yellow);
}

.achievement-icon {
    font-size: 1.5rem;
}

.achievement-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--deep-ink);
}

/* Report Footer */
.report-footer {
    padding: 1.5rem;
    background: var(--electric-cyan);
    border-top: 3px solid var(--deep-ink);
    text-align: center;
}

.report-points {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--deep-ink);
}

/* Reports History */
.reports-history {
    margin-top: 3rem;
}

.history-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--deep-ink);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 0 var(--hot-pink);
}

.reports-timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.timeline-item::before {
    content: '📅';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: white;
    border: 3px solid var(--deep-ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-card {
    background: white;
    border: 3px solid var(--deep-ink);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 4px 4px 0 var(--electric-cyan);
}

.timeline-date {
    font-family: 'Comic Neue', cursive;
    font-size: 0.9rem;
    color: var(--hot-pink);
}

.timeline-event {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--deep-ink);
    margin-top: 0.25rem;
}

.timeline-points {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: var(--electric-cyan);
    margin-top: 0.25rem;
}

/* Admin Panel */
.admin-events-panel {
    background: linear-gradient(135deg, #FFE5F1, #E8F4FF);
    border: 4px solid var(--deep-ink);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
}

.admin-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--deep-ink);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 0 var(--neon-yellow);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .events-section {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Remove all decorative borders on mobile */
    .events-section::before,
    .events-section::after,
    .report-card::before,
    .report-card::after {
        display: none !important;
    }
    
    /* Code Redemption Mobile */
    .code-redemption-card {
        padding: 1rem;
        box-shadow: none;
        border-radius: 0;
        margin: 0.5rem;
        width: calc(100% - 1rem);
        box-sizing: border-box;
    }
    
    .redemption-title {
        font-size: 1.5rem;
    }
    
    .redemption-form {
        flex-direction: column;
    }
    
    .code-input {
        font-size: 1rem;
        padding: 0.5rem;
        letter-spacing: 1px;
    }
    
    .redeem-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Report Card Mobile - Full width, no decorative elements */
    .report-card {
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        border-left: none;
        border-right: none;
        border-top: 2px solid var(--deep-ink);
        border-bottom: 2px solid var(--deep-ink);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .report-header {
        padding: 1rem;
        border-radius: 0;
    }
    
    .report-title {
        font-size: 1.5rem;
        text-shadow: 1px 1px 0 var(--deep-ink);
    }
    
    .report-date {
        font-size: 0.9rem;
    }
    
    .report-type {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }
    
    /* Grades Section Mobile - Single column list */
    .report-grades {
        padding: 1rem 0.5rem;
        border-bottom: 1px dashed var(--deep-ink);
    }
    
    .report-grades h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .grades-grid {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        padding: 0 0.5rem;
    }
    
    .grade-item {
        padding: 0.6rem 1rem;
        border: 2px solid var(--deep-ink);
        border-radius: 8px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 45px;
        width: 100%;
        box-sizing: border-box;
        background: white;
    }
    
    .grade-category {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--deep-ink);
        white-space: normal;
        text-align: left;
        flex: 1;
    }
    
    .grade-value {
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.3rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Feedback Section Mobile - Maximum content width */
    .report-feedback {
        padding: 1rem;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    .report-feedback h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feedback-section {
        margin-bottom: 1.25rem;
        width: calc(100% - 1rem);
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        box-sizing: border-box;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        border: 2px solid var(--deep-ink);
    }
    
    .feedback-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding: 0;
        font-weight: bold;
        text-align: center;
    }
    
    .feedback-list {
        padding: 0;
        margin: 0;
        width: 100%;
        list-style: none;
    }
    
    .feedback-list li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        position: relative;
        word-wrap: break-word;
        white-space: normal;
        width: 100%;
        box-sizing: border-box;
        line-height: 1.4;
    }
    
    .feedback-list li::before {
        font-size: 0.9rem;
        position: absolute;
        left: 0.25rem;
        top: 0.5rem;
    }
    
    .feedback-notes {
        padding: 0.75rem;
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }
    
    .feedback-notes h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .feedback-notes p {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
    
    /* Achievements Mobile */
    .report-achievements {
        padding: 1.5rem 1rem;
    }
    
    .report-achievements h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .achievement-list {
        gap: 0.5rem;
    }
    
    .achievement-badge {
        padding: 0.5rem 1rem;
        border: 2px solid var(--deep-ink);
        font-size: 0.9rem;
    }
    
    .achievement-icon {
        font-size: 1.2rem;
    }
    
    .achievement-name {
        font-size: 0.85rem;
    }
    
    /* Report Footer Mobile */
    .report-footer {
        padding: 1rem;
    }
    
    .report-points {
        font-size: 1.2rem;
    }
    
    /* Reports History Mobile */
    .reports-history {
        margin-top: 2rem;
    }
    
    .history-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .reports-timeline {
        padding-left: 2rem;
    }
    
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    .timeline-item::before {
        left: -1.75rem;
        font-size: 1rem;
        width: 1.5rem;
        height: 1.5rem;
        border: 2px solid var(--deep-ink);
    }
    
    .timeline-card {
        padding: 0.75rem;
        border: 2px solid var(--deep-ink);
        box-shadow: 2px 2px 0 var(--electric-cyan);
    }
    
    .timeline-date {
        font-size: 0.8rem;
    }
    
    .timeline-event {
        font-size: 1rem;
    }
    
    .timeline-points {
        font-size: 0.9rem;
    }
    
    /* Admin Panel Mobile */
    .admin-events-panel {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
        border: 3px solid var(--deep-ink);
    }
    
    .admin-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Container-based responsive adjustments - removed to use single column layout */

/* Very small screens */
@media (max-width: 400px) {
    .report-title {
        font-size: 1.5rem;
    }
    
    .report-grades h3,
    .report-feedback h3,
    .report-achievements h3 {
        font-size: 1.25rem;
    }
    
    .grades-grid {
        grid-template-columns: 1fr;
    }
    
    .grade-item {
        padding: 0.4rem;
        flex-direction: column;
        min-height: 50px;
    }
    
    .grade-category {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }
    
    .grade-value {
        font-size: 1rem;
    }
    
    .achievement-badge {
        padding: 0.4rem 0.8rem;
    }
    
    .achievement-icon {
        font-size: 1rem;
    }
    
    .achievement-name {
        font-size: 0.8rem;
    }
}