/* Website Platforms Filter - Unified Design */
.website-platforms-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    z-index: 10;
}

.platform-filter-btn {
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.platform-filter-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.platform-filter-btn:hover::before {
    left: 100%;
}

.platform-filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.platform-filter-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    transform: translateY(-3px);
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    z-index: 10;
}

.category-filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.category-filter-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.category-filter-btn:hover::before {
    left: 100%;
}

.category-filter-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.category-filter-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    transform: translateY(-3px);
}

/* Website Task Card */
.website-task-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 5px solid #3b82f6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.website-task-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.website-task-card:hover::before {
    transform: scaleY(1);
}

.website-task-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.website-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.website-task-platform {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    color: #60a5fa;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.website-task-platform:hover {
    color: #93c5fd;
    transform: translateX(5px);
}

.website-task-points {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    transition: all 0.4s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.website-task-points:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

.website-task-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.website-task-card:hover .website-task-title {
    color: #60a5fa;
}

.website-task-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.website-task-url {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    word-break: break-all;
    font-family: "Courier New", monospace;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    font-weight: 500;
}

.website-task-url:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.website-task-actions {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.website-task-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.website-task-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s ease;
    font-weight: 500;
}

.website-task-stat:hover {
    color: #60a5fa;
    transform: translateY(-2px);
}

.website-task-stat i {
    color: #60a5fa;
    font-size: 1.1rem;
}

.no-website-tasks {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.no-website-tasks::before {
  content: "📋";
  display: block;
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
}


.website-task-completed {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
}

.website-task-completed .website-task-points {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 9998;
    display: none;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 85%;
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    overflow: hidden;
    animation: popupSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.popup-title {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.popup-content {
    height: calc(100% - 80px);
    position: relative;
    background: rgba(15, 23, 42, 0.95);
}

.popup-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.popup-info {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-weight: 600;
}

.popup-info:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.visit-timer {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 800;
    margin-left: 1rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    display: inline-block;
    animation: pulse 2s infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 100%;
    color: white;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .website-platforms-filter,
    .category-filter {
        gap: 0.8rem;
        padding: 1.5rem;
    }

    .platform-filter-btn,
    .category-filter-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .website-task-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }

    .website-task-title {
        font-size: 1.2rem;
    }

    .website-task-description {
        font-size: 1rem;
    }

    .website-task-stats {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .popup-window {
        width: 95%;
        height: 90%;
        border-radius: 20px;
    }

    .popup-header {
        padding: 1.2rem 1.5rem;
    }

    .popup-title {
        font-size: 1.1rem;
    }

    .popup-info {
        top: 1rem;
        left: 1rem;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .visit-timer {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .website-task-header {
        flex-direction: column;
        gap: 1rem;
    }

    .website-task-actions {
        flex-direction: column;
    }

    .website-task-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .popup-window {
        width: 98%;
        height: 95%;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}