/* Home Landing Page Styles */

/* When home tab is active, hide sidebar and header */
body.home-active .sidebar,
body.home-active header {
    display: none !important;
}

body.home-active .content {
    margin-left: 0;
    width: 100%;
}

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.home-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color, #059669);
    margin: 0 0 8px 0;
    text-align: center;
}

.home-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted, #78716c);
    margin: 0 0 50px 0;
    text-align: center;
}

/* Home Area Grouping */
.home-area-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
}

.home-area-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.3s ease;
    display: none; /* Hidden by default to prevent FOUC */
}

.home-area-card:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.home-area-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-area-header::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.3;
}

.tab-launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    width: 100%;
}

.launcher-btn {
    display: none; /* Hidden by default to prevent FOUC */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    background: white;
    border: 2px solid #e7e5e4;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Launcher buttons that don't need permission checks */
.launcher-btn:not([data-tab-launch]) {
    display: flex;
}

.launcher-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.launcher-btn:hover::before {
    opacity: 0.1;
}

.launcher-btn:hover {
    border-color: #059669;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.2);
}

.launcher-btn:active {
    transform: translateY(-2px);
}

.launcher-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.launcher-btn:hover .launcher-icon {
    transform: scale(1.1);
}

.launcher-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #292524;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-title {
        font-size: 2rem;
    }

    .home-subtitle {
        font-size: 1rem;
    }

    .tab-launcher-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }

    .launcher-btn {
        padding: 30px 20px;
    }

    .launcher-icon {
        font-size: 3rem;
    }

    .launcher-label {
        font-size: 1rem;
    }

    .home-logo {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .tab-launcher-grid {
        grid-template-columns: 1fr;
    }
}