@import url('general.css');

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(234, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.video-author {
    font-size: 0.9rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #aaa;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--card-bg-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    font-size: 0.9rem;
    max-width: 300px;
    animation: slideIn 0.5s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.icon {
    margin-right: 0.5rem;
    fill: var(--accent-color);
}

.close-btn {
    background: var(--accent-gradient);
    color: var(--text-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(98, 0, 234, 0.3);
}

.form-div {
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 12px;
    background-color: var(--card-bg-color);
    max-width: 750px;
    min-width: 500px;
    height: 600px;
    margin: 0 auto;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.projects li {
    list-style: none;
    color: var(--text-color);
}

.main_section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--second-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    animation: fadeIn 0.4s ease both;
}

.main_section h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.main_section p {
    color: #ccc;
}

#projects {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
}

#projects li {
    margin: 0.25rem 0;
}

#projects li a {
    display: inline-block;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

#projects li a:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}