/* RS3 Ultimate Helper - RuneScape Themed Styles */

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

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: #1a1410;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,.05) 10px, rgba(0,0,0,.05) 20px);
    color: #e6d5b8;
    padding: 15px;
    min-height: 100vh;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    background: linear-gradient(135deg, #2a1f1a 0%, #1f1810 100%);
    border: 3px solid #4a3820;
    border-radius: 8px;
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(180deg, #3d2817 0%, #2a1f1a 100%);
    border-bottom: 3px solid #5a4428;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.title {
    font-size: 2em;
    font-weight: bold;
    color: #f4e4c1;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
}

.version-badge {
    background: linear-gradient(135deg, #d4af37 0%, #aa8a1f 100%);
    color: #1a1410;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    border: 1px solid #f4e4c1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Player Greeting */
.player-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    border-radius: 6px;
    border: 2px solid #5a4428;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.greeting-label {
    color: #c9b896;
    font-size: 0.9em;
    font-weight: 600;
}

.player-name {
    color: #d4af37;
    font-size: 1.1em;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.refresh-name-btn {
    background: #5a4428;
    border: 1px solid #6a5438;
    color: #e6d5b8;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.refresh-name-btn:hover {
    background: #6a5438;
    transform: rotate(180deg);
}

/* Tabs */
.tabs {
    display: flex;
    background: #1f1810;
    border-bottom: 2px solid #5a4428;
    padding: 0;
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 10px;
    background: transparent;
    border: none;
    border-right: 1px solid #3d2817;
    color: #9a8a6a;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background: rgba(90, 68, 40, 0.2);
    color: #d4af37;
}

.tab-btn.active {
    background: linear-gradient(180deg, #5a4428 0%, #4a3820 100%);
    color: #f4e4c1;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.3);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.tab-icon {
    font-size: 1.5em;
}

.tab-label {
    font-size: 0.9em;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Section Headers */
.section-header {
    font-size: 1.5em;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #5a4428;
}

.section-description {
    color: #c9b896;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#questSearch {
    flex: 1;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #5a4428;
    border-radius: 6px;
    color: #e6d5b8;
    font-size: 1em;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease;
}

#questSearch:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(212, 175, 55, 0.3);
}

#questSearch::placeholder {
    color: #7a6a4a;
}

.action-btn, #searchBtn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #5a4428 0%, #4a3820 100%);
    border: 2px solid #6a5438;
    border-radius: 6px;
    color: #f4e4c1;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.action-btn:hover, #searchBtn:hover {
    background: linear-gradient(135deg, #6a5438 0%, #5a4428 100%);
    border-color: #7a6448;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-btn {
    flex: 1;
    padding: 10px;
    background: rgba(90, 68, 40, 0.3);
    border: 2px solid #5a4428;
    border-radius: 6px;
    color: #c9b896;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(90, 68, 40, 0.5);
    border-color: #6a5438;
}

.filter-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #aa8a1f 100%);
    color: #1a1410;
    border-color: #f4e4c1;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
}

/* Quest Count */
.quest-count {
    color: #9a8a6a;
    font-size: 0.9em;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border-left: 3px solid #5a4428;
}

/* Quest List */
.quest-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.quest-item {
    background: linear-gradient(135deg, rgba(61, 40, 23, 0.6) 0%, rgba(42, 31, 26, 0.6) 100%);
    border: 2px solid #4a3820;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.quest-item:hover {
    background: linear-gradient(135deg, rgba(71, 50, 33, 0.8) 0%, rgba(52, 41, 36, 0.8) 100%);
    border-color: #5a4428;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.quest-item.completed {
    border-color: #4a7c59;
    background: linear-gradient(135deg, rgba(42, 87, 59, 0.4) 0%, rgba(32, 67, 49, 0.4) 100%);
    box-shadow: 0 0 15px rgba(74, 124, 89, 0.3);
}

.quest-item.completed .quest-name {
    color: #7fba9f;
}

.quest-name {
    font-size: 1.15em;
    font-weight: bold;
    margin-bottom: 8px;
    color: #f4e4c1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.quest-difficulty {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.difficulty-novice { 
    background: linear-gradient(135deg, #4a7c59 0%, #3a6c49 100%);
    color: #fff;
}

.difficulty-intermediate { 
    background: linear-gradient(135deg, #5a7fb8 0%, #4a6fa8 100%);
    color: #fff;
}

.difficulty-experienced { 
    background: linear-gradient(135deg, #c87a28 0%, #b86a18 100%);
    color: #fff;
}

.difficulty-master { 
    background: linear-gradient(135deg, #b84a4a 0%, #a83a3a 100%);
    color: #fff;
}

.difficulty-grandmaster { 
    background: linear-gradient(135deg, #8a4a8a 0%, #7a3a7a 100%);
    color: #fff;
}

.quest-requirements {
    font-size: 0.9em;
    color: #c9b896;
    margin-top: 8px;
    line-height: 1.5;
}

/* Progress Stats */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(61, 40, 23, 0.6) 0%, rgba(42, 31, 26, 0.6) 100%);
    border: 2px solid #5a4428;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    border-color: #6a5438;
}

.stat-icon {
    font-size: 2.5em;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-label {
    color: #9a8a6a;
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Progress Bar */
.progress-bar-container {
    margin-bottom: 25px;
}

.progress-bar-label {
    color: #c9b896;
    font-weight: 600;
    margin-bottom: 10px;
}

.progress-bar {
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #5a4428;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, #f4e4c1 50%, #d4af37 100%);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 12px 24px;
    border: 2px solid;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #5a7fb8 0%, #4a6fa8 100%);
    border-color: #6a8fc8;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6a8fc8 0%, #5a7fb8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #5a4428 0%, #4a3820 100%);
    border-color: #6a5438;
    color: #f4e4c1;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #6a5438 0%, #5a4428 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #b84a4a 0%, #a83a3a 100%);
    border-color: #c85a5a;
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c85a5a 0%, #b84a4a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* Settings */
.settings-group {
    margin-bottom: 25px;
}

.settings-group-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #5a4428;
}

.setting-item {
    background: rgba(61, 40, 23, 0.3);
    border: 1px solid #4a3820;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: rgba(61, 40, 23, 0.5);
    border-color: #5a4428;
}

.setting-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #e6d5b8;
}

.setting-label input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d4af37;
}

.setting-text {
    font-size: 1em;
}

/* Info Box */
.info-box {
    background: rgba(90, 68, 40, 0.2);
    border: 2px solid #5a4428;
    border-left: 4px solid #d4af37;
    border-radius: 6px;
    padding: 15px;
    color: #c9b896;
    line-height: 1.6;
}

.info-box ul {
    margin: 10px 0 10px 20px;
}

.info-box li {
    margin-bottom: 5px;
}

.info-box .note {
    margin-top: 10px;
    font-style: italic;
    color: #9a8a6a;
}

.info-box strong {
    color: #d4af37;
}

/* Input Group */
.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #c9b896;
}

/* Recommended List */
.recommended-list {
    margin-top: 20px;
}

/* Footer */
.footer {
    background: #1f1810;
    border-top: 2px solid #5a4428;
    padding: 15px 20px;
    text-align: center;
    color: #7a6a4a;
    font-size: 0.9em;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f4e4c1;
    text-decoration: underline;
}

.separator {
    margin: 0 10px;
    color: #5a4428;
}

.footer-credit {
    color: #9a8a6a;
}

/* Scrollbar */
.quest-list::-webkit-scrollbar {
    width: 10px;
}

.quest-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.quest-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5a4428 0%, #4a3820 100%);
    border-radius: 5px;
    border: 1px solid #3d2817;
}

.quest-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6a5438 0%, #5a4428 100%);
}

/* Loading/Empty States */
.loading {
    text-align: center;
    padding: 40px;
    color: #9a8a6a;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 50%;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary, .btn-danger {
        width: 100%;
    }
}
