/* ==========================================
   JOBBROOM UNIVERSAL COMPONENTS - CSS
   Settings Sidebar + Footer Styles
   ========================================== */

/* SETTINGS SIDEBAR */
.settings-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.settings-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.settings-icon i {
    color: white;
    font-size: 22px;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.settings-icon:hover i {
    animation-play-state: paused;
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-overlay.active {
    opacity: 1;
    visibility: visible;
}

.settings-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 360px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.settings-sidebar.active {
    right: 0;
}

.settings-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.settings-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.close-settings {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.close-settings:hover {
    transform: rotate(90deg);
}

.settings-menu {
    padding: 10px 0;
}

.settings-item {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.settings-item:hover {
    background: #f8f9ff;
    padding-left: 25px;
}

.settings-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
}

.settings-item-icon.purple { background: #f0e6ff; color: #764ba2; }
.settings-item-icon.blue { background: #e6f0ff; color: #4A90E2; }
.settings-item-icon.orange { background: #fff3e6; color: #ff9f43; }
.settings-item-icon.green { background: #e6fff0; color: #2ecc71; }
.settings-item-icon.red { background: #ffe6e6; color: #e74c3c; }
.settings-item-icon.yellow { background: #fffbe6; color: #F7C709; }

.settings-item-text {
    flex: 1;
}

.settings-item-text span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2C5186;
}

.settings-item-arrow {
    color: #999;
    font-size: 18px;
}

/* FOOTER */
.main-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #F7C709;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #F7C709;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* RESPONSIVE */
@media only screen and (max-width: 768px) {
    .settings-sidebar {
        width: 75% !important;
        max-width: none !important;
        right: -75% !important;
    }
    
    .settings-sidebar.active {
        right: 0 !important;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
