/* ===== HERO SECTION ===== */

.hero-section {
    padding: 32px 32px 24px;
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBg 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: slideInFade 0.6s ease-out;
}

.hero-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-label .material-icons-round {
    font-size: 16px;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.6;
}

/* ===== SEE ALL BUTTON ===== */

.see-all {
    font-size: 13px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
}

.see-all:hover {
    color: var(--accent-blue-hover);
    background: var(--accent-blue-light);
    transform: translateX(4px);
}

.see-all .material-icons-round {
    font-size: 18px;
}

/* ===== APP ROW (HORIZONTAL SCROLL) ===== */

.app-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-card) transparent;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

/* ===== CATEGORY CARD ===== */

.category-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 14px;
    margin-top: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== LIST ITEM ===== */

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    transition: background 0.18s ease, transform 0.18s ease;
    text-decoration: none;
    color: inherit;
}

.list-item:hover {
    background: rgba(255,255,255,0.02);
    transform: translateY(-2px);
}

.list-item-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.03);
}

.list-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.list-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.list-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-action {
    margin-left: 8px;
    flex-shrink: 0;
}

/* ===== BUTTONS ===== */

.visit-button {
    background: var(--accent-blue);
    color: #fff;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.visit-button:hover {
    background: var(--accent-blue-hover);
}

.visit-link {
    background: var(--accent-blue);
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== APP CARD CATEGORY ===== */

.app-card-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    color: inherit;
}

.category-card-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.app-icon-category {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.03);
}

.app-icon-category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.category-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.category-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-domain {
    font-size: 13px;
    color: var(--text-tertiary);
}

.category-visit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: var(--accent-blue);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border: none;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-visit-btn:hover {
    background: var(--accent-blue-hover);
}

/* ===== APP CARD COMPACT ===== */

.app-card-compact {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
    text-align: left;
    box-shadow: none;
}

.app-icon-compact {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    display: inline-block;
}

.app-icon-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-info-compact {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    text-align: left;
}

.app-name-compact {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.app-description-compact {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: left;
}

.get-button-compact {
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.get-button-compact:hover {
    background: var(--accent-blue-hover);
}

/* ===== APP CARD MINI ===== */

.app-card-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: transparent;
    border: none;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    min-width: 160px;
    max-width: 100%;
    width: 100%;
}

.app-info-mini {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: left;
}

.app-domain-compact {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== GRIDS ===== */

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 0;
}

/* ===== FALLBACK ICONS ===== */

.app-card-compact .icon-fallback {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-item .list-item-icon.icon-fallback {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
