:root {
    --yt-dark-background: #161616;
    --yt-dark-card: #282828;
    --yt-red: #FF0000;
    --yt-blue: #3EA6FF;
    --yt-light-text: #FFFFFF;
    --yt-dark-text: #AAAAAA;
}

body {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--yt-dark-background);
    color: var(--yt-light-text);
    margin-bottom: 60px; /* Add margin to the bottom to prevent overlap with the navbar */
}

header {
    padding: 1rem;
    text-align: center;
}

#logo {
    height: 60px;
    scale: 150%;
}


main {
    padding: 1rem;
}

#accounts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-card {
    border-radius: 12px;
    padding: 1.5rem;
    border-left: none;
    color: white;
}

.account-card.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.account-card.tiktok {
    background-color: #000000;
}

.account-card.youtube {
    background-color: #FF0000;
}

.account-card.facebook {
    background-color: #1877F2;
}

.account-card.snapchat {
    background-color: #FFFC00;
}

.account-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.username {
    font-size: 1.2rem;
    margin: 0;
    flex-grow: 1;
}

.platform-icon {
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

.account-info h3 {
    margin-top: 0;
    font-size: 1.5rem;
    text-transform: capitalize;
}

.account-info p {
    margin: 0.5rem 0 0;
    color: var(--yt-dark-text);
}

.account-info .stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.account-info .stat {
    text-align: center;
}

.account-info .stat .label {
    font-size: 0.9rem;
    color: var(--yt-dark-text);
}

.account-info .stat .value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--yt-light-text);
}

.tabs {
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--yt-dark-card);
    border-top: 1px solid #3d3d3d;
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--yt-dark-text);
    font-size: 0.8rem;
}

.tab i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.tab.active {
    color: var(--yt-light-text);
}

#video-compare-container {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 2rem;
}

.video-container {
    width: 45%;
}

.video-placeholder {
    width: 100%;
    height: 200px;
    background-color: #333;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.video-stats {
    display: flex;
    justify-content: space-around;
}

#comparison-analysis {
    background-color: var(--yt-dark-card);
    border-radius: 12px;
    padding: 1.5rem;
}

#post-form .form-group {
    margin-bottom: 1.5rem;
}

#post-form label {
    display: block;
    margin-bottom: 0.5rem;
}

#post-form input[type="text"],
#post-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #3d3d3d;
    background-color: #333;
    color: var(--yt-light-text);
}

#post-form .platform-selection {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.platform-option {
    position: relative;
}

.platform-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.platform-option label {
    display: inline-block;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #3d3d3d;
    cursor: pointer;
    font-size: 1.5rem;
}

.platform-option input[type="checkbox"]:checked + label {
    background-color: var(--yt-blue);
    color: var(--yt-light-text);
}

#post-form button {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    background-color: var(--yt-blue);
    color: var(--yt-light-text);
    font-size: 1rem;
    cursor: pointer;
}

@media (min-width: 769px) {
    .tabs {
        display: none;
    }
}

/* Analysis Page Styles */
.search-container {
    display: flex;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

#search-input {
    flex-grow: 1;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #3d3d3d;
    background-color: #333;
    color: var(--yt-light-text);
}

#search-button {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: none;
    background-color: var(--yt-blue);
    color: var(--yt-light-text);
    cursor: pointer;
}

.analyse-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.promo-chart, .contest-chart {
    background-color: var(--yt-dark-card);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    flex-basis: calc(50% - 0.5rem);
    max-width: 200px;
}

.chart-container {
    width: 100px;
    height: 100px;
    margin: 0.5rem auto;
    position: relative;
}

.chart {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--yt-light-text);
    position: relative;
}

.chart[data-percent="75"] {
    background: conic-gradient(from 0deg, #4CAF50 0% 75%, var(--yt-dark-background) 75% 100%);
}

.chart[data-percent="50"] {
    background: conic-gradient(from 0deg, #f44336 0% 50%, var(--yt-dark-background) 50% 100%);
}

.percent {
    position: absolute;
    font-weight: bold;
}

.content-section {
    margin-top: 2rem;
}

.filter-container {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-container label {
    font-size: 1rem;
}

#platform-filter {
    background-color: var(--yt-dark-card);
    color: var(--yt-light-text);
    border: 1px solid #3d3d3d;
    padding: 0.8rem;
    border-radius: 8px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.content-item {
    background-color: var(--yt-dark-card);
    border-radius: 12px;
    overflow: hidden;
}

.content-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.content-item-info {
    padding: 1rem;
}

.content-item h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.content-item p {
    color: var(--yt-dark-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.content-item .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.content-item .tags span {
    background-color: #3d3d3d;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
}
