/* Theme Variables - These will be overridden by JavaScript */
:root {
    /* Original color palette preserved */
    --bg-1: #056c6c;
    --bg-2: #4a0a4b;
    --white-1: #f5f5f5;
    --white-2: #f2f4f8;
    --white-3: #cdd1d5;
    --blue-1: #4D9DD0;
    --blue-2: #3C82B5;
    --blue-3: #316E9E;
    --red-1: #F28784;
    --red-2: #E14B3A;
    --red-3: #B43C31;
    --green-1: #69B68D;
    --green-2: #4E9472;
    --green-3: #3E785E;
    --yellow-1: #F79B15;
    --yellow-2: #DB8D1D;
    --yellow-3: #B47621;
    --navy: #324461;
    --purple-1: #9f608b;
    --black: #111111;
    --container-background: #374244;
    --card-background: #D0A472;
    --card-border: #8B5A2B;
    --text-highlight: #FFEC85;
    --text-secondary: #563912;
    --symbol-color: #0CDEAD;
    --symbol-highlight: #FF6B6B;
    --accent-orange: #D97A2B;
    --accent-red: #B73E3E;
    --table-background: #4C2F24;
    --glow-effect: #E4D6A7;
    --card-shadow: #3B1E14;
    --max-width:800px;

    /* Dynamic Theme Variables */
    --theme-bg-primary: var(--white-1);
    --theme-bg-secondary: #fff;
    --theme-text-primary: #333;
    --theme-text-secondary: #666;
    --theme-accent: var(--red-3);
    --theme-accent-hover: var(--red-2);
    --theme-border: var(--card-border);
    --theme-shadow: var(--card-shadow);
    --theme-card-bg: var(--white-1);
    --theme-filter-bg: #fff;
    --theme-filter-hover: var(--white-3);
    --theme-tag-bg: #eee;
    --theme-scan-opacity: 0.1;
    
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='32' height='32'%3e%3cpath d='M12 10V8h-1V7H9l1-1V4L9 3V1H8L7 0 6 1H1L0 2l1 3 1 1v2l1 2h1V8s0 1 0 0l1 1h2l1 1v1l1 1v-1l1-1h2ZM3 3V2h1v1H3Z' style='fill:%23CF1222;stroke:%23fff;stroke-miterlimit:10;stroke-width:0.5px'/%3e%3c/svg%3e"), auto;
    /* Add smooth transitions for theme changes */
    transition:all 0.1s ease;
}


header{
    max-width: var(--max-width);
    width:60%;
    padding:16px;
}
.logo-symbols{
  fill:var(--theme-accent);
  transform-origin: 25% 50%;
}
.logo-fuku{
  fill:var(--theme-text-primary);
  transform-origin: center;
}
.logo-strap{
  fill:var(--theme-text-secondary);
  transform-origin: 75% 25%;
}

/* Optional: Change cursor on interactive elements */
a, button, .project-link, .filter-btn, .search-box {
    cursor: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='32' height='32'%3e%3cpath d='M12 10V8h-1V7H9l1-1V4L9 3V1H8L7 0 6 1H1L0 2l1 3 1 1v2l1 2h1V8s0 1 0 0l1 1h2l1 1v1l1 1v-1l1-1h2ZM3 3V2h1v1H3Z' style='fill:%23fff;stroke:%23CF1222;stroke-miterlimit:10;stroke-width:0.5px'/%3e%3c/svg%3e"), auto;
}


#theme-indicator{
    opacity:0;
}

body {
    font-family: monospace;
    line-height: 1.6;
    color: var(--theme-text-primary);
    background-color: var(--theme-bg-primary);
    padding: 20px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
        min-height: 100vh;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100wh;
    background-image: url('tvscan.png');
    background-repeat: repeat;
    opacity: var(--theme-scan-opacity);
    z-index: -1;
}

header {
    text-align: center;
    border-radius: 8px;
    z-index: 1;
    margin-bottom: 20px;
}

h1 {
    margin-bottom: 10px;
    color: var(--theme-text-primary);
}

.description {
    color: var(--theme-text-primary);
    max-width: 600px;
    margin: 0 auto;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
     max-width: 590px;
}

.filter-group {
    background: var(--theme-card-bg);
    border-radius: 8px;
    padding: 8px;
    border: 2px solid var(--theme-border);
}

.filter-group h4 {
    font-weight: 400;
    margin-bottom: 4px;
    color: var(--theme-text-secondary);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

button {
    padding: 8px 16px;
    background: var(--theme-filter-bg);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.1s  ease;
    box-shadow: var(--theme-shadow) 1px 1px 2px;
    color: var(--theme-text-primary);
    font-weight: 600;
}

button:hover {
    background: var(--theme-filter-hover);
}

button.active {
    background: var(--theme-accent);
    color: var(--theme-bg-primary);
}

.search-box {
    padding: 10px;
    border: 2px solid var(--theme-border);
    border-radius: 8px;
    width: 100%;
    max-width: 590px;
    text-align: center;
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
    font-weight: 600;
}

.search-box::placeholder {
  color: var(--theme-text-secondary);
  opacity: 1; /* Firefox */
}

.projects-grid {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card {
    background: var(--theme-card-bg);
    border: 2px solid var(--theme-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    padding: 16px;
    gap: 20px;
    transition: all 0.1s easee;
    box-shadow: var(--theme-shadow) 2px 2px 2px;
}

.project-image {
    height: 250px;
    width: 315px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0;
    border-radius: 8px;
}

.project-content {
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--theme-text-primary);
}

.project-description {
    color: var(--theme-text-secondary);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tag {
    background: var(--theme-filter-bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--theme-text-primary);
}

.project-link {
    display: inline-block;
    color: var(--theme-accent);
}

.project-link:hover {
    color: var(--theme-accent-hover);
}

.empty-state {
    text-align: center;
    padding: 40px;
    background: var(--theme-bg-secondary);
    border-radius: 8px;
    grid-column: 1 / -1;
    color: var(--theme-text-primary);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--theme-text-secondary);
}

.project-link::after {
    content: " ↗";
}

@media (max-width: 768px) {
    .projects-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
    .project-card {
        flex-direction: column;
    }
    .project-image {
        height: 0;
        padding-bottom: 79.37%; 
        width: 100%;
    }
    header{
    width:100%;
    padding:16px;
}
}