:root {
    --primary-red: #8B0000;
    --secondary-dark: #1a1a1a;
    --accent-gold: #D4AF37;
    --bg-light: #f9f9f9;
    --text-main: #333333;
    --white: #ffffff;
    --needle-color: #ff0000;
    --success-color: #4CAF50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    
    /* Anti-Copy CSS */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection in inputs only */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Header */
header {
    background-color: var(--secondary-dark);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-red);
    text-transform: uppercase;
    text-decoration: none;
}

.logo-text span {
    color: var(--white);
}

.nav-links {
    margin-top: 10px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.btn-cta {
    background-color: var(--primary-red);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    display: inline-block;
}

.btn-cta:hover {
    background-color: #a00000;
}
.btn-cta.large {
    font-size: 1.2rem;
    padding: 12px 24px;
    margin-top: 1rem;
}

/* Tuner Styles */
.tuner-section {
    padding: 2rem 0;
}

.tuner-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 2rem auto;
    max-width: 500px;
    text-align: center;
}

.note-display {
    font-size: 5rem;
    font-weight: bold;
    color: var(--secondary-dark);
    margin-bottom: 0.5rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-display.in-tune {
    color: var(--success-color);
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.frequency-display {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.meter-container {
    position: relative;
    width: 100%;
    height: 150px; /* Semicircle height */
    overflow: hidden;
    margin: 0 auto 1.5rem;
}

.meter-scale {
    width: 100%;
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    font-weight: bold;
    color: #aaa;
}

.meter-center {
    width: 4px;
    height: 10px;
    background-color: #ddd;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.meter-needle {
    width: 4px;
    height: 120px;
    background-color: var(--needle-color);
    position: absolute;
    bottom: -10px; /* Pivot point below */
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg); /* Start at 0deg (vertical) */
    transition: transform 0.1s linear;
    border-radius: 2px;
}

.status-msg {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.controls {
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--secondary-dark);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #000;
}

.btn-secondary {
    background-color: #666;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Reference Notes */
.reference-notes h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.string-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.string-buttons button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--secondary-dark);
    background: white;
    font-weight: bold;
    color: var(--secondary-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.string-buttons button:hover, .string-buttons button.active {
    background: var(--secondary-dark);
    color: white;
}

.premium-promo {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Footer */
footer {
    background-color: var(--secondary-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Utils */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0;
    }
    .nav-links a {
        margin-left: 0;
    }
}
