/* ============================================
   TUNER PAGE SPECIFIC STYLES
   ============================================ */

/* Page Header */
.page-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.home-btn {
    background-color: var(--secondary-color);
    color: #000;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.home-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

/* Tuner Container */
.tuner-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tuner-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Tuning Section */
.tuning-section {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.tuning-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
}

.tuning-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.preset-btn {
    background: #333;
    color: var(--text-color);
    border: 2px solid #444;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.preset-btn:hover {
    background: #444;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.preset-btn.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.4);
}

/* Strings Section */
.strings-section {
    margin-bottom: 30px;
}

.strings-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 25px;
}

.guitar-strings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.string-button {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.9));
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.string-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.string-button:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(187, 134, 252, 0.3);
}

.string-button.playing {
    border-color: var(--secondary-color);
    box-shadow: 0 0 30px rgba(3, 218, 198, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
}

.string-button.playing::before {
    opacity: 0.1;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(3, 218, 198, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(3, 218, 198, 0.8);
    }
}

.string-button>* {
    position: relative;
    z-index: 1;
}

.string-number {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 8px;
}

.string-note {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 5px;
    text-align: center;
}

.string-button.playing .string-note {
    color: var(--secondary-color);
}

.string-frequency {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 10px;
}

.play-indicator {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-dim);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.string-button.playing .play-indicator {
    color: var(--secondary-color);
    opacity: 1;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Controls Section */
.controls-section {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.stop-all-btn {
    background: var(--highlight-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(207, 102, 121, 0.3);
}

.stop-all-btn:hover {
    background: #ff79a0;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(207, 102, 121, 0.5);
}

/* Chromatic Section */
.chromatic-section {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.chromatic-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.chromatic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
}

.chromatic-btn {
    background: #333;
    color: var(--text-color);
    border: 2px solid #444;
    padding: 15px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.chromatic-btn span {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 400;
}

.chromatic-btn:hover {
    background: #444;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 218, 198, 0.3);
}

.chromatic-btn.playing {
    background: var(--secondary-color);
    color: #000;
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(3, 218, 198, 0.6);
}

.chromatic-btn.playing span {
    color: #000;
}

/* Tips Section */
.tips-section {
    margin-top: 40px;
}

.tips-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 25px;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tip-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(187, 134, 252, 0.2);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tip-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.tip-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 968px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .tuning-presets {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .guitar-strings {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .page-title {
        font-size: 2rem;
    }

    .guitar-strings {
        grid-template-columns: repeat(2, 1fr);
    }

    .chromatic-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}