/*
Theme Name: RCCA - Retro Computing Club Adour
Theme URI: https://rcca.fr
Author: RCCA
Author URI: https://rcca.fr
Description: Thème WordPress rétro style Apple II pour le Retro Computing Club Adour. Design avec effet CRT, barre arc-en-ciel et esthétique pixel art des années 80.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rcca
Tags: retro, gaming, vintage, dark, one-column, custom-menu, featured-images, translation-ready

Retro Computing Club Adour - Préservons le patrimoine numérique 1978-2000
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --apple-black: #000000;
    --apple-green: #33ff33;
    --apple-green-dim: #1a8c1a;
    --apple-white: #ffffff;
    --apple-orange: #ff6600;
    --apple-blue: #0066ff;
    --apple-purple: #cc33ff;
    --apple-red: #ff3333;
    --apple-yellow: #ffff00;
    --apple-cyan: #33ffff;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Press Start 2P', monospace;
    background: var(--apple-black);
    color: var(--apple-green);
    min-height: 100vh;
    font-size: 12px;
    line-height: 1.8;
    overflow-x: hidden;
}

/* ==========================================================================
   CRT Monitor Effect
   ========================================================================== */
.crt {
    position: relative;
}

.crt::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

.crt::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    z-index: 999;
}

/* ==========================================================================
   Container
   ========================================================================== */
.container,
.site-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Rainbow Bar
   ========================================================================== */
.rainbow-bar {
    height: 8px;
    display: flex;
    margin-bottom: 20px;
}

.rainbow-bar span {
    flex: 1;
}

.rainbow-bar .r1 { background: #33ff33; }
.rainbow-bar .r2 { background: #ffff00; }
.rainbow-bar .r3 { background: #ff9900; }
.rainbow-bar .r4 { background: #ff3333; }
.rainbow-bar .r5 { background: #cc33ff; }
.rainbow-bar .r6 { background: #0066ff; }

.rainbow-bar-small {
    height: 4px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    text-align: center;
    padding: 20px 0;
    border: 4px double var(--apple-green);
    margin-bottom: 20px;
    background: rgba(51, 255, 51, 0.05);
}

.site-logo {
    margin-bottom: 10px;
}

.pixel-apple {
    display: inline-block;
    image-rendering: pixelated;
}

.site-title {
    font-size: 24px;
    color: var(--apple-green);
    text-shadow: 0 0 10px var(--apple-green);
    margin: 10px 0;
    letter-spacing: 4px;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-title a:hover {
    text-shadow: 0 0 20px var(--apple-green);
}

.site-description {
    font-size: 8px;
    color: var(--apple-green-dim);
    letter-spacing: 2px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    padding: 8px;
    border: 2px solid var(--apple-green);
    background: rgba(51, 255, 51, 0.02);
}

.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    flex: 1;
    min-width: 100px;
}

.main-navigation a,
.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 12px 8px;
    background: var(--apple-black);
    color: var(--apple-green);
    border: 2px solid var(--apple-green-dim);
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    cursor: pointer;
    transition: all 0.1s;
    text-decoration: none;
    text-align: center;
}

.main-navigation a:hover,
.nav-btn:hover {
    background: var(--apple-green);
    color: var(--apple-black);
    box-shadow: 0 0 10px var(--apple-green);
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a,
.nav-btn.active {
    background: var(--apple-green);
    color: var(--apple-black);
    border-color: var(--apple-green);
}

.nav-icon {
    width: 24px;
    height: 24px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    width: 100%;
    padding: 12px;
    background: var(--apple-black);
    color: var(--apple-green);
    border: 2px solid var(--apple-green);
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    cursor: pointer;
}

.menu-toggle:hover {
    background: var(--apple-green);
    color: var(--apple-black);
}

/* ==========================================================================
   Content Boxes
   ========================================================================== */
.box,
.content-box {
    border: 2px solid var(--apple-green);
    padding: 16px;
    margin-bottom: 16px;
    background: rgba(51, 255, 51, 0.02);
    position: relative;
}

.box::before,
.content-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--apple-black);
}

.box-title {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--apple-black);
    padding: 0 8px;
    font-size: 10px;
    color: var(--apple-yellow);
}

.box.highlight {
    border-color: var(--apple-yellow);
}

.box.highlight .box-title {
    color: var(--apple-yellow);
}

/* ==========================================================================
   Grid System
   ========================================================================== */
.grid {
    display: grid;
    gap: 16px;
}

.grid-2 { 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

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

.grid-4 { 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
}

/* ==========================================================================
   Items with Icons
   ========================================================================== */
.item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.item-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-content h3 {
    font-size: 10px;
    color: var(--apple-cyan);
    margin-bottom: 4px;
}

.item-content p {
    font-size: 10px;
    color: var(--apple-green);
    opacity: 0.8;
}

/* ==========================================================================
   Prompt Style
   ========================================================================== */
.prompt {
    color: var(--apple-green);
}

.prompt::before {
    content: '] ';
    color: var(--apple-green);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 14px;
    background: var(--apple-green);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 4px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ==========================================================================
   Colors
   ========================================================================== */
.text-green { color: var(--apple-green); }
.text-yellow { color: var(--apple-yellow); }
.text-cyan { color: var(--apple-cyan); }
.text-orange { color: var(--apple-orange); }
.text-purple { color: var(--apple-purple); }
.text-red { color: var(--apple-red); }
.text-blue { color: var(--apple-blue); }
.text-white { color: var(--apple-white); }

.bg-green { background-color: var(--apple-green); }
.bg-yellow { background-color: var(--apple-yellow); }

/* ==========================================================================
   Text Alignment
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid var(--apple-green);
    font-size: 8px;
    margin: 2px;
}

.badge.dept {
    border-color: var(--apple-cyan);
    color: var(--apple-cyan);
}

.badge-yellow {
    border-color: var(--apple-yellow);
    color: var(--apple-yellow);
}

/* ==========================================================================
   Member Cards
   ========================================================================== */
.member-card {
    text-align: center;
    padding: 16px;
    border: 2px solid var(--apple-green);
}

.member-card.empty {
    border-color: var(--apple-red);
    border-style: dashed;
}

.member-icon {
    margin-bottom: 8px;
}

.member-card h4 {
    font-size: 10px;
    margin-bottom: 4px;
}

.member-card .name {
    font-size: 12px;
    color: var(--apple-white);
}

.member-card .status {
    font-size: 8px;
    margin-top: 8px;
}

/* ==========================================================================
   Price Display
   ========================================================================== */
.price {
    font-size: 32px;
    color: var(--apple-yellow);
    text-shadow: 0 0 10px var(--apple-yellow);
}

/* ==========================================================================
   Lists
   ========================================================================== */
.list-item {
    padding: 8px 0;
    border-bottom: 1px dashed var(--apple-green-dim);
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-item:last-child {
    border-bottom: none;
}

.list-num {
    color: var(--apple-yellow);
    width: 20px;
}

/* ==========================================================================
   Social Buttons
   ========================================================================== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 500px) {
    .social-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.social-btn {
    padding: 16px 8px;
    border: 2px solid var(--apple-green);
    text-align: center;
    cursor: pointer;
    transition: all 0.1s;
    text-decoration: none;
    display: block;
    color: var(--apple-green);
}

.social-btn:hover {
    background: var(--apple-green);
    color: var(--apple-black);
}

.social-btn .icon {
    margin-bottom: 8px;
}

.social-btn span {
    font-size: 8px;
    display: block;
}

/* ==========================================================================
   Activity Rows
   ========================================================================== */
.activity {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--apple-green-dim);
    margin-bottom: 8px;
}

.activity:hover {
    border-color: var(--apple-green);
    background: rgba(51, 255, 51, 0.05);
}

.activity-freq {
    font-size: 7px;
    color: var(--apple-orange);
    padding: 2px 6px;
    border: 1px solid var(--apple-orange);
}

/* ==========================================================================
   Departments Container
   ========================================================================== */
.dept-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.blink-text {
    animation: blink 1s step-end infinite;
}

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

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

.float-animation {
    animation: float 2s ease-in-out infinite;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 2px solid var(--apple-green-dim);
    text-align: center;
    font-size: 8px;
    color: var(--apple-green-dim);
}

.site-footer p {
    margin-bottom: 8px;
}

/* ==========================================================================
   Spacing Utilities
   ========================================================================== */
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.pt-1 { padding-top: 8px; }
.pt-2 { padding-top: 16px; }
.pb-1 { padding-bottom: 8px; }
.pb-2 { padding-bottom: 16px; }

/* ==========================================================================
   WordPress Specific
   ========================================================================== */

/* Posts & Pages */
.entry-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--apple-green-dim);
}

.entry-title {
    font-size: 16px;
    color: var(--apple-yellow);
    text-shadow: 0 0 10px var(--apple-yellow);
    margin-bottom: 10px;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--apple-green);
}

.entry-meta {
    font-size: 8px;
    color: var(--apple-green-dim);
}

.entry-meta a {
    color: var(--apple-cyan);
    text-decoration: none;
}

.entry-meta a:hover {
    color: var(--apple-green);
}

.entry-content {
    font-size: 11px;
    line-height: 2;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--apple-cyan);
    margin: 20px 0 10px;
}

.entry-content h2 { font-size: 14px; }
.entry-content h3 { font-size: 12px; }
.entry-content h4 { font-size: 11px; }

.entry-content a {
    color: var(--apple-yellow);
    text-decoration: none;
    border-bottom: 1px dashed var(--apple-yellow);
}

.entry-content a:hover {
    color: var(--apple-green);
    border-color: var(--apple-green);
}

.entry-content ul,
.entry-content ol {
    margin: 16px 0;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content blockquote {
    border-left: 4px solid var(--apple-cyan);
    padding: 10px 20px;
    margin: 20px 0;
    background: rgba(51, 255, 255, 0.05);
}

.entry-content code {
    background: rgba(51, 255, 51, 0.1);
    padding: 2px 6px;
    border: 1px solid var(--apple-green-dim);
}

.entry-content pre {
    background: rgba(51, 255, 51, 0.05);
    border: 1px solid var(--apple-green);
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--apple-green);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--apple-green-dim);
}

.post-navigation a {
    color: var(--apple-green);
    text-decoration: none;
    font-size: 10px;
    padding: 8px 12px;
    border: 1px solid var(--apple-green);
}

.post-navigation a:hover {
    background: var(--apple-green);
    color: var(--apple-black);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination .page-numbers {
    padding: 8px 12px;
    border: 1px solid var(--apple-green-dim);
    color: var(--apple-green);
    text-decoration: none;
    font-size: 10px;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--apple-green);
    color: var(--apple-black);
    border-color: var(--apple-green);
}

/* Comments */
.comments-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--apple-green-dim);
}

.comments-title {
    font-size: 12px;
    color: var(--apple-yellow);
    margin-bottom: 20px;
}

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

.comment {
    border: 1px solid var(--apple-green-dim);
    padding: 16px;
    margin-bottom: 16px;
    background: rgba(51, 255, 51, 0.02);
}

.comment-author {
    font-size: 10px;
    color: var(--apple-cyan);
    margin-bottom: 8px;
}

.comment-content {
    font-size: 10px;
}

.comment-reply-link {
    font-size: 8px;
    color: var(--apple-yellow);
    text-decoration: none;
}

/* Comment Form */
.comment-form label {
    display: block;
    font-size: 10px;
    margin-bottom: 4px;
    color: var(--apple-cyan);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    background: var(--apple-black);
    border: 1px solid var(--apple-green);
    color: var(--apple-green);
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    margin-bottom: 16px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    box-shadow: 0 0 10px var(--apple-green);
}

.comment-form input[type="submit"] {
    background: var(--apple-green);
    color: var(--apple-black);
    border: none;
    padding: 12px 24px;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.1s;
}

.comment-form input[type="submit"]:hover {
    box-shadow: 0 0 20px var(--apple-green);
}

/* Widgets */
.widget {
    margin-bottom: 24px;
    padding: 16px;
    border: 2px solid var(--apple-green);
    background: rgba(51, 255, 51, 0.02);
}

.widget-title {
    font-size: 10px;
    color: var(--apple-yellow);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--apple-green-dim);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--apple-green-dim);
    font-size: 10px;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--apple-green);
    text-decoration: none;
}

.widget a:hover {
    color: var(--apple-cyan);
}

/* Search Form */
.search-form {
    display: flex;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px;
    background: var(--apple-black);
    border: 1px solid var(--apple-green);
    color: var(--apple-green);
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
}

.search-form button {
    padding: 10px 16px;
    background: var(--apple-green);
    color: var(--apple-black);
    border: 1px solid var(--apple-green);
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    cursor: pointer;
}

/* ==========================================================================
   Sidebar Layout
   ========================================================================== */
/* .content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .content-sidebar-wrap {
        grid-template-columns: 2fr 1fr;
    }
} */

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Mobile - Small devices */
@media (max-width: 480px) {
    body {
        font-size: 10px;
    }
    
    .site-title {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .site-description {
        font-size: 6px;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation li {
        min-width: 100%;
    }
    
    .main-navigation a {
        flex-direction: row;
        justify-content: center;
    }
    
    .nav-icon {
        width: 20px;
        height: 20px;
    }
    
    .box,
    .content-box {
        padding: 12px;
    }
    
    .box-title {
        font-size: 8px;
    }
    
    .entry-title {
        font-size: 12px;
    }
    
    .price {
        font-size: 24px;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .site-title {
        font-size: 20px;
    }
    
    .main-navigation a {
        padding: 10px 6px;
        font-size: 7px;
    }
    
    .nav-icon {
        width: 20px;
        height: 20px;
    }
}

/* Show/Hide mobile menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation:not(.toggled) ul {
        display: none;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .main-navigation ul {
        display: flex !important;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .container,
    .site-container {
        padding: 30px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .crt::before,
    .crt::after {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .main-navigation,
    .menu-toggle {
        display: none;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: var(--apple-green);
    color: var(--apple-black);
    clip: auto !important;
    display: block;
    height: auto;
    left: 5px;
    padding: 15px 23px 14px;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--apple-yellow);
    outline-offset: 2px;
}
