/* Anocris Otomasyon Paneli - Modern CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c1810 0%, #8b4513 50%, #daa520 100%);
    min-height: 100vh;
    color: #f4f4f4;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 2px solid #daa520;
    box-shadow: 0 8px 32px rgba(218, 165, 32, 0.2);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #daa520;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: 1.1rem;
    color: #f0e68c;
    opacity: 0.9;
}

/* Status Panel */
.status-panel {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid #8b4513;
}

.status-item {
    text-align: center;
}

.status-label {
    display: block;
    font-size: 0.9rem;
    color: #daa520;
    margin-bottom: 5px;
    font-weight: 600;
}

.status-value {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
}

.status-value.ready {
    background: #28a745;
    color: white;
}

.status-value.running {
    background: #ffc107;
    color: #000;
}

.status-value.error {
    background: #dc3545;
    color: white;
}

/* Button Grid */
.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 25px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.action-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;
}

.action-btn:hover:before {
    left: 100%;
}

.action-btn.primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.action-btn.secondary {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
}

.action-btn.tertiary {
    background: linear-gradient(135deg, #fd7e14, #e83e8c);
    color: white;
}

.action-btn.metamask {
    background: linear-gradient(135deg, #f6851b, #e2761b);
    color: white;
    border: 2px solid #f6851b;
}

.action-btn.metamask:hover {
    background: linear-gradient(135deg, #e2761b, #cd6116);
    border-color: #e2761b;
}

.action-btn.metamask-login {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
    color: white;
    border: 2px solid #6f42c1;
}

.action-btn.metamask-login:hover {
    background: linear-gradient(135deg, #5a2d91, #4c2a85);
    border-color: #5a2d91;
}

.action-btn.game-login {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: 2px solid #ff6b35;
}

.action-btn.game-login:hover {
    background: linear-gradient(135deg, #f7931e, #e8890b);
    border-color: #f7931e;
}

.action-btn.new-tab {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 2px solid #28a745;
}

.action-btn.new-tab:hover {
    background: linear-gradient(135deg, #20c997, #1e7e34);
    border-color: #20c997;
}

.action-btn.game-entry {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
    border: 2px solid #6f42c1;
}

.action-btn.game-entry:hover {
    background: linear-gradient(135deg, #5a32a3, #4c2a85);
    border-color: #5a32a3;
}

.action-btn.instant {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: 2px solid #17a2b8;
}

.action-btn.instant:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    border-color: #138496;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.action-btn:active {
    transform: translateY(-1px);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    min-width: 60px;
}

.btn-text {
    flex: 1;
}

.btn-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.btn-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Log Panel */
.log-panel {
    flex: 1;
    margin-bottom: 20px;
}

.log-panel h3 {
    color: #daa520;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.log-container {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #8b4513;
}

.log-entry {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.log-entry.info {
    background: rgba(23, 162, 184, 0.2);
    border-left-color: #17a2b8;
    color: #b8daff;
}

.log-entry.success {
    background: rgba(40, 167, 69, 0.2);
    border-left-color: #28a745;
    color: #d4edda;
}

.log-entry.warning {
    background: rgba(255, 193, 7, 0.2);
    border-left-color: #ffc107;
    color: #fff3cd;
}

.log-entry.error {
    background: rgba(220, 53, 69, 0.2);
    border-left-color: #dc3545;
    color: #f8d7da;
}

/* Screenshot Display Area */
.screenshot-display {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid #8b4513;
}

.screenshot-display h3 {
    color: #daa520;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.screenshot-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.screenshot-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #8b4513;
}

.screenshot-preview img:hover {
    transform: scale(1.02);
    border-color: #daa520;
    box-shadow: 0 4px 20px rgba(218, 165, 32, 0.3);
}

.screenshot-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 500px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid #8b4513;
}

.download-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-1px);
}

/* Screenshot Panel */
.screenshot-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.screenshot-panel h3 {
    color: #daa520;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.screenshot-container {
    position: relative;
    max-width: 90%;
    max-height: 80%;
}

.screenshot-container img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
    color: #daa520;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(218, 165, 32, 0.3);
    border-top: 4px solid #daa520;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #f0e68c;
    opacity: 0.8;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 5px;
}

/* Scrollbar Styling */
.log-container::-webkit-scrollbar {
    width: 8px;
}

.log-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb {
    background: #8b4513;
    border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb:hover {
    background: #daa520;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .action-btn {
        padding: 20px;
    }
    
    .btn-icon {
        font-size: 2rem;
        margin-right: 15px;
        min-width: 50px;
    }
    
    .status-panel {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .action-btn {
        padding: 15px;
    }
    
    .btn-title {
        font-size: 1.1rem;
    }
    
    .btn-desc {
        font-size: 0.8rem;
    }
}