/* Tool Page Common Styles */
.tool-page {
    padding-top: 0;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: #667eea;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ddd;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

.tool-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.tool-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

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

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-separator {
    opacity: 0.5;
}

.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

/* Virtual Drum Set Specific Styles */

/* Drum Container */
.drum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.12);
    overflow: hidden;
}

.drum-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 45px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.drum-header::before {
    content: '🥁';
    position: absolute;
    font-size: 180px;
    opacity: 0.1;
    top: -30px;
    right: -30px;
}

.drum-header h2 {
    font-size: 38px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.drum-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

.drum-body {
    padding: 40px 30px;
}

/* Drum Controls */
.drum-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.control-icon {
    font-size: 20px;
}

#volumeControl {
    width: 150px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

#volumeControl::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
}

#volumeValue {
    font-weight: 700;
    color: #667eea;
    min-width: 45px;
}

.control-buttons {
    display: flex;
    gap: 10px;
}

.control-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.control-btn.recording {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Predefined Beats Section */
.beats-section {
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 15px;
}

.beats-section h3 {
    font-size: 24px;
    color: #e65100;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

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

.beat-btn {
    padding: 20px 15px;
    background: white;
    border: 2px solid #ff9800;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #333;
}

.beat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.3);
    border-color: #f57c00;
}

.beat-icon {
    font-size: 32px;
}

.beat-name {
    font-weight: 600;
    font-size: 14px;
}

.beat-btn.playing {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    animation: beatPulse 0.5s infinite alternate;
}

@keyframes beatPulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.beat-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.beat-status {
    font-size: 14px;
    color: #e65100;
    font-weight: 600;
    padding: 8px 15px;
    background: white;
    border-radius: 8px;
    min-height: 40px;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Audio Upload Section */
.audio-upload-section {
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 15px;
}

.audio-upload-section h3 {
    font-size: 24px;
    color: #1565c0;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.upload-area {
    background: white;
    border: 3px dashed #2196f3;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #1565c0;
    background: #f5f5f5;
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #1565c0;
    background: #e3f2fd;
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: #666;
    margin: 0;
}

#audioFileInput {
    display: none;
}

/* Audio Info Section */
.audio-info {
    background: white;
    border: 2px solid #2196f3;
    border-radius: 15px;
    padding: 25px;
    display: none;
}

.audio-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e3f2fd;
}

.audio-name {
    font-size: 16px;
    font-weight: 700;
    color: #1565c0;
    word-break: break-all;
    flex: 1;
    margin-right: 15px;
}

.remove-audio-btn {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remove-audio-btn:hover {
    background: #d32f2f;
    transform: rotate(90deg);
}

.audio-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.audio-status {
    text-align: center;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Drum Kit Layout */
.drum-kit {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.drums-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Individual Drum Pad Styling */
.drum-pad {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.drum-pad:hover {
    transform: translateY(-5px) scale(1.05);
}

.drum-pad:active,
.drum-pad.active {
    transform: scale(0.95);
}

/* Cymbal Styling */
.drum-pad.cymbal {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border: 4px solid #b8860b;
    width: 140px;
    height: 140px;
}

.drum-pad.cymbal.crash {
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
}

.drum-pad.cymbal.ride {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    border-color: #808080;
}

.drum-pad.cymbal.active {
    animation: cymbalHit 0.3s ease;
}

@keyframes cymbalHit {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

/* Tom Styling */
.drum-pad.tom {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: 5px solid #8b0000;
}

.drum-pad.high-tom {
    width: 100px;
    height: 100px;
}

.drum-pad.mid-tom {
    width: 110px;
    height: 110px;
}

.drum-pad.floor-tom {
    width: 130px;
    height: 130px;
}

/* Hi-Hat Styling */
.drum-pad.hihat,
.drum-pad.hihat-open {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    border: 4px solid #34495e;
}

/* Snare Styling */
.drum-pad.snare {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    border: 5px solid #7f8c8d;
    width: 130px;
    height: 130px;
}

/* Kick Drum Styling */
.drum-pad.kick {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 6px solid #1a252f;
    width: 150px;
    height: 150px;
}

/* Clap Styling */
.drum-pad.clap {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border: 4px solid #663399;
}

/* Drum Labels */
.drum-label {
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
}

.key-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.drum-pad.hide-keys .key-label {
    display: none;
}

/* Hit Animation */
.drum-pad.hit {
    animation: drumHit 0.2s ease;
}

@keyframes drumHit {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); box-shadow: 0 0 30px rgba(255, 255, 255, 0.5); }
    100% { transform: scale(1); }
}

/* Keyboard Shortcuts Info */
.keyboard-shortcuts {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 20px;
}

.keyboard-shortcuts h4 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.shortcuts-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shortcut-item {
    color: #666;
    font-size: 14px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.shortcut-item kbd {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 13px;
    margin: 0 2px;
}

/* Drum Info Box */
.drum-info-box {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.drum-info-box h4 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    padding: 20px;
    background: white;
    border-radius: 10px;
    color: #666;
}

.info-item strong {
    display: block;
    color: #667eea;
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 700;
}

/* SEO Content Section */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #333;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article ul,
.content-article ol {
    margin-bottom: 25px;
    padding-left: 30px;
    color: #666;
}

.content-article li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-article strong {
    color: #333;
    font-weight: 700;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

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

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-subtitle {
        font-size: 16px;
    }
    
    .tool-icon-large {
        font-size: 52px;
    }
    
    .tool-meta {
        font-size: 14px;
    }

    .content-article h2 {
        font-size: 26px;
    }
    
    .content-article h3 {
        font-size: 20px;
    }
    
    .related-tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .drum-header h2 {
        font-size: 28px;
    }

    .drum-body {
        padding: 30px 20px;
    }

    .drum-controls {
        flex-direction: column;
        padding: 20px;
    }

    .control-group {
        width: 100%;
        justify-content: center;
    }

    .beats-section,
    .audio-upload-section {
        padding: 25px 20px;
    }

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

    .upload-area {
        padding: 30px 20px;
    }

    .upload-icon {
        font-size: 48px;
    }

    .upload-text {
        font-size: 16px;
    }

    .drum-pad {
        width: 90px;
        height: 90px;
    }

    .drum-pad.cymbal {
        width: 100px;
        height: 100px;
    }

    .drum-pad.kick {
        width: 110px;
        height: 110px;
    }

    .drum-pad.snare {
        width: 100px;
        height: 100px;
    }

    .drum-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .drum-pad {
        width: 70px;
        height: 70px;
    }

    .drum-pad.cymbal {
        width: 80px;
        height: 80px;
    }

    .drum-pad.kick,
    .drum-pad.snare {
        width: 85px;
        height: 85px;
    }

    .drums-row {
        gap: 10px;
    }

    .drum-label {
        font-size: 11px;
    }

    .key-label {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

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

    .related-tools {
        padding: 25px 20px;
    }

    .related-tools h3 {
        font-size: 24px;
    }

    .related-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}