/**
 * Minecraft Votifier Tester - Style File
 */

/* Tool container */
.votifier-tester-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.votifier-tester-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/minecraft-bg-pattern.png') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.votifier-tester-container > * {
    position: relative;
    z-index: 1;
}

/* Test form area */
.test-form-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 3px solid #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.test-form-section h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.6em;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.test-form {
    display: grid;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Courier New', monospace;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

.form-group input.valid {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

.form-group input.invalid {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-size: 14px;
    line-height: 1.4;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.9em;
}

.input-status {
    margin-top: 5px;
    font-size: 0.9em;
    font-weight: bold;
}

.input-status.valid {
    color: #27ae60;
}

.input-status.invalid {
    color: #e74c3c;
}

/* Test buttons */
.test-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.minecraft-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.minecraft-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.minecraft-btn:hover::before {
    left: 100%;
}

.minecraft-btn.primary {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: 2px solid #c0392b;
}

.minecraft-btn.primary:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 57, 43, 0.4);
}

.minecraft-btn.secondary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: 2px solid #2980b9;
}

.minecraft-btn.secondary:hover {
    background: linear-gradient(45deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
}

/* Test results area */
.test-results-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 3px solid #27ae60;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
}

.test-results-section h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.6em;
    font-weight: bold;
    text-align: center;
}

.test-results-container {
    min-height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 2px dashed #bdc3c7;
}

.result-placeholder {
    text-align: center;
    color: #7f8c8d;
    padding: 40px 20px;
}

.result-placeholder p {
    margin: 10px 0;
    font-size: 1.1em;
}

/* Loading indicator */
.loading-indicator {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Test result styles */
.test-result {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #3498db;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.test-result.success {
    border-left-color: #27ae60;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f8e8 100%);
}

.test-result.error {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #fff8f8 0%, #f8e8e8 100%);
}

.test-result.warning {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, #fffdf8 0%, #f8f4e8 100%);
}

.test-result h4 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.4em;
}

.result-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.status-indicator {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    min-width: 120px;
}

.status-indicator.success {
    background: #27ae60;
    color: white;
}

.status-indicator.error {
    background: #e74c3c;
    color: white;
}

.status-indicator.warning {
    background: #f39c12;
    color: white;
}

.test-details {
    background: rgba(52, 152, 219, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.test-details p {
    margin: 8px 0;
    color: #2c3e50;
}

.test-details strong {
    color: #3498db;
}

/* Complete test results */
.overall-status {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.overall-status.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.overall-status.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.score-display {
    margin-top: 10px;
}

.score-display .score {
    font-size: 2em;
    font-weight: bold;
    margin-right: 10px;
}

.score-display .percentage {
    font-size: 1.2em;
    opacity: 0.9;
}

.test-breakdown {
    display: grid;
    gap: 10px;
    margin-bottom: 25px;
}

.test-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #ecf0f1;
}

.test-item.success {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

.test-item.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.test-item .icon {
    font-size: 1.2em;
}

.test-item .label {
    flex: 1;
    font-weight: bold;
    color: #2c3e50;
}

.test-item .status {
    font-weight: bold;
}

.test-item.success .status {
    color: #27ae60;
}

.test-item.error .status {
    color: #e74c3c;
}

/* Detailed results and suggestions */
.detailed-results,
.troubleshooting-tips,
.recommendations,
.success-tips {
    background: rgba(52, 152, 219, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    margin-top: 20px;
}

.detailed-results h6,
.troubleshooting-tips h5,
.recommendations h6,
.success-tips h6 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2em;
}

.troubleshooting-tips ul,
.recommendations ul,
.success-tips ul {
    list-style: none;
    padding: 0;
}

.troubleshooting-tips li,
.recommendations li,
.success-tips li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.troubleshooting-tips li::before,
.recommendations li::before,
.success-tips li::before {
    content: '🔧';
    position: absolute;
    left: 0;
}

.success-tips li::before {
    content: '💡';
}

/* Error messages */
.error-message {
    background: linear-gradient(135deg, #fff5f5, #ffeaea);
    border: 2px solid #e74c3c;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.error-message h4 {
    color: #e74c3c;
    margin-bottom: 15px;
}

.error-message p {
    color: #2c3e50;
    white-space: pre-line;
}

/* Troubleshooting guide */
.troubleshooting-guide {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 3px solid #f39c12;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.2);
}

.troubleshooting-guide h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.6em;
    font-weight: bold;
    text-align: center;
}

.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.issue-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #ecf0f1;
    transition: all 0.3s ease;
}

.issue-card:hover {
    border-color: #f39c12;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.2);
}

.issue-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.issue-card ul {
    list-style: none;
    padding: 0;
}

.issue-card li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #34495e;
}

.issue-card li::before {
    content: '•';
    color: #f39c12;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Votifier information area */
.votifier-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 3px solid #9b59b6;
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.2);
}

.votifier-info h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.6em;
    font-weight: bold;
    text-align: center;
}

.info-sections {
    display: grid;
    gap: 25px;
}

.info-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #ecf0f1;
    transition: all 0.3s ease;
}

.info-section:hover {
    border-color: #9b59b6;
    box-shadow: 0 3px 10px rgba(155, 89, 182, 0.1);
}

.info-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.info-section p {
    margin-bottom: 12px;
    color: #34495e;
    line-height: 1.6;
}

.info-section strong {
    color: #9b59b6;
}

/* Technical specifications */
.technical-specs {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 3px solid #34495e;
    box-shadow: 0 5px 15px rgba(52, 73, 94, 0.2);
}

.technical-specs h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.6em;
    font-weight: bold;
    text-align: center;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.spec-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #ecf0f1;
    transition: all 0.3s ease;
}

.spec-card:hover {
    border-color: #34495e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 73, 94, 0.2);
}

.spec-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.spec-card ul {
    list-style: none;
    padding: 0;
}

.spec-card li {
    padding: 5px 0;
    color: #34495e;
    border-bottom: 1px solid #ecf0f1;
}

.spec-card li:last-child {
    border-bottom: none;
}

.spec-card strong {
    color: #34495e;
    font-weight: bold;
}

/* Copy notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .votifier-tester-container {
        padding: 15px;
        margin: 10px;
    }
    
    .test-form-section,
    .test-results-section,
    .troubleshooting-guide,
    .votifier-info,
    .technical-specs {
        padding: 20px;
    }
    
    .test-buttons {
        flex-direction: column;
    }
    
    .minecraft-btn {
        width: 100%;
    }
    
    .result-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .troubleshooting-grid,
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .test-breakdown {
        gap: 8px;
    }
    
    .test-item {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    .minecraft-btn {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .test-result {
        padding: 20px;
    }
    
    .overall-status {
        padding: 15px;
    }
    
    .score-display .score {
        font-size: 1.8em;
    }
}
