@font-face {
    font-family: 'TTFoxfordExtraBold';
    src: url('../fonts/TTFoxfordExtraBold.woff2') format('woff2');
}
@font-face {
    font-family: 'Normal';
    src: url('../fonts/circe_regular.woff2') format('woff2');
}

:root {
    --bg-color: #f6f7fb;
    --text-color: rgb(37, 38, 44);
    --username-color: #666;
    --separator-color: #aaa;
    --theme-toggle-bg: #e0e0e0;
    --theme-toggle-icon: #555;
    --card-bg: #e0e0e0;
    --divider-bg: #1a1a1a;
    --card-shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --username-color: #aaa;
    --separator-color: #666;
    --theme-toggle-bg: #333;
    --theme-toggle-icon: #ddd;
    --card-bg: #2a2a2a;
    --divider-bg: #ccc;
    --card-shadow: rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-family: 'Normal',serif;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    transition: background-color 0.3s, color 0.3s;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 5px;
    margin-bottom: 20px;
}

h1 {
    font-family: 'TTFoxfordExtraBold', serif;
    font-size: 36px;
    margin: 0;
}

h2 {
    font-family: 'TTFoxfordExtraBold', serif;
    font-size: 28px;
    margin-top: 30px;
}

p {
    font-family: 'Normal',serif;
    font-size: 18px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover, a:active, a:focus {
    color: inherit;
    text-decoration: none;
}

.username {
    font-family: 'Normal', sans-serif;
    font-size: 18px;
    color: var(--username-color);
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.separator {
    font-size: 16px;
    margin: 0 3px;
    color: var(--separator-color);
    transition: color 0.3s;
}

.theme-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--theme-toggle-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 1000;
}

.theme-toggle i {
    color: var(--theme-toggle-icon);
    font-size: 20px;
    transition: color 0.3s;
}

.activity-section {
    margin-top: 40px;
}

.activity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}

.activity-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 12px;
    box-shadow: 0 2px 4px var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px var(--card-shadow);
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.app-info {
    flex: 1;
}

.app-name {
    font-family: 'Normal', sans-serif;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.app-time {
    font-family: 'Normal', sans-serif;
    font-size: 14px;
    color: var(--username-color);
    margin: 5px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.divider {
    height: 1px;
    background: linear-gradient(210deg, transparent, var(--divider-bg), transparent);
    margin: 20px 0;
}

.notification {
    position: absolute;
    background: var(--card-bg);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transition: transform 1s ease-out, opacity 0.3s;
    z-index: 999;
    pointer-events: none;
}

.app-description {
    font-size: 14px;
    color: var(--username-color);
    margin: 0 0 8px 0;
}

@media (min-width: 768px) {
    body {
        padding: 40px 40px 320px;
    }

    .profile-header {
        flex-direction: row;
        align-items: center;
        text-align: left;
        margin-bottom: 40px;
    }

    .avatar {
        margin-right: 30px;
        margin-bottom: 0;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 36px;
        margin-top: 40px;
    }

    p {
        font-size: 22px;
    }

    .username {
        font-size: 28px;
        gap: 10px;
    }

    .separator {
        font-size: 20px;
        margin: 0 5px;
    }

    .activity-grid {
        grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
        gap: 20px;
    }

    .activity-card {
        padding: 20px;
        gap: 15px;
    }

    .app-icon {
        width: 60px;
        height: 60px;
    }

    .app-name {
        font-size: 18px;
    }

    .app-time {
        font-size: 16px;
        margin: 0;
    }

    .divider {
        margin: 30px 0;
    }
}