/**
 * Borderless/Flat Design for User Admin
 * File: src/scss/components/user-admin-borderless-flat.scss
 */

.fe-admin-design-borderless-flat {
    &.fe_fs_user_admin_wrap {
        font-family:
            "Poppins",
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            Roboto,
            sans-serif;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%);
        min-height: 100vh;
        padding: 0;
        color: #2d3748;

        // Header with tabs and logout
        .fe_fs_header_buttons {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border: none;
            box-shadow: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            margin-bottom: 0;
            display: flex;
            justify-content: space-between;
            align-items: center;

            .fe_fs_tabs {
                display: flex;
                list-style: none;
                margin: 0;
                padding: 0;
                background: rgba(255, 255, 255, 0.1);
                backdrop-filter: blur(10px);
                border-radius: 0;
                overflow: hidden;

                li {
                    flex: 1;

                    a {
                        text-decoration: none;

                        button {
                            background: transparent;
                            border: none;
                            padding: 1.25rem 2rem;
                            color: rgba(45, 55, 72, 0.8);
                            font-weight: 500;
                            cursor: pointer;
                            transition: all 0.3s ease;
                            font-size: 1rem;
                            text-transform: uppercase;
                            letter-spacing: 0.05em;
                            width: 100%;

                            &:hover {
                                color: rgba(45, 55, 72, 1);
                                background: rgba(255, 255, 255, 0.1);
                            }
                        }
                    }

                    &.active-tab {
                        a button {
                            color: #2d3748;
                            background: rgba(255, 255, 255, 0.3);
                            backdrop-filter: blur(20px);
                            font-weight: 600;
                        }
                    }
                }
            }

            .fus-logout {
                a {
                    text-decoration: none;

                    button {
                        background: linear-gradient(135deg, #667eea, #764ba2);
                        color: white;
                        border: none;
                        border-radius: 0;
                        padding: 1rem 2.5rem;
                        font-size: 1rem;
                        font-weight: 500;
                        cursor: pointer;
                        transition: all 0.3s ease;
                        text-transform: uppercase;
                        letter-spacing: 0.1em;
                        position: relative;
                        overflow: hidden;
                        min-width: 140px;

                        &::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;
                        }

                        &:hover {
                            transform: translateY(-3px);
                            box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);

                            &::before {
                                left: 100%;
                            }
                        }
                    }
                }
            }
        }

        // Main content area
        .fe_fs_post_list {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            border: none;
            border-radius: 0;
            box-shadow: none;
            transition: all 0.3s ease;
            margin-top: 5px;

            &:hover {
                background: rgba(255, 255, 255, 0.95);
                transform: translateY(-2px);
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            }

            .fe_fs_title {
                background: rgba(255, 255, 255, 0.5);
                backdrop-filter: blur(10px);
                padding: 2rem;
                border: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.3);
                display: flex;
                align-items: center;
                justify-content: space-between;

                strong {
                    color: #2d3748;
                    font-size: 1.75rem;
                    font-weight: 300;
                    letter-spacing: -0.02em;
                    position: relative;

                    &::after {
                        content: "";
                        position: absolute;
                        bottom: -0.75rem;
                        left: 0;
                        width: 40px;
                        height: 2px;
                        background: linear-gradient(135deg, #667eea, #764ba2);
                        border-radius: 1px;
                    }
                }

                a {
                    color: #667eea;
                    text-decoration: none;
                    font-size: 1rem;
                    font-weight: 500;
                    padding: 0.75rem 1.5rem;
                    border: 2px solid rgba(102, 126, 234, 0.3);
                    border-radius: 0;
                    transition: all 0.3s ease;
                    background: transparent;

                    &:hover {
                        background: rgba(102, 126, 234, 0.1);
                        border-color: #667eea;
                        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
                    }
                }
            }

            // Posts container styling
            .fe_fs_posts_container {
                .fe_fs_post_item {
                    display: flex;
                    align-items: center;
                    padding: 1rem 1.5rem;
                    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
                    transition: all 0.3s ease;

                    &:hover {
                        background: rgba(255, 255, 255, 0.5);
                        transform: translateX(5px);
                    }

                    &:last-child {
                        border-bottom: none;
                    }

                    .fe_fs_post_thumbnail {
                        flex-shrink: 0;
                        width: 80px;
                        margin-right: 1.5rem;

                        a {
                            display: block;

                            .img__box {
                                width: 64px;
                                height: 64px;
                                background: linear-gradient(135deg, #667eea, #764ba2);
                                border-radius: 50%;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                transition: all 0.3s ease;
                                border: none;
                                overflow: hidden;
                                position: relative;

                                &::before {
                                    content: "📄";
                                    font-size: 1.5rem;
                                    filter: brightness(0) invert(1);
                                }

                                img {
                                    width: 100%;
                                    height: 100%;
                                    object-fit: cover;
                                    border-radius: 50%;
                                    position: absolute;
                                }

                                &:hover {
                                    transform: scale(1.1);
                                    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
                                }
                            }
                        }
                    }

                    .fe_fs_post_content {
                        flex: 1;
                        min-width: 0;

                        .fe_fs_post_title {
                            a {
                                color: #2d3748;
                                text-decoration: none;
                                font-weight: 500;
                                font-size: 1.2rem;
                                transition: all 0.3s ease;
                                display: block;
                                line-height: 1.4;

                                &:hover {
                                    color: #667eea;
                                }
                            }
                        }

                        .fe_fs_post_meta {
                            margin-top: 0.5rem;
                            display: flex;
                            gap: 1rem;
                            font-size: 0.9rem;
                            color: rgba(45, 55, 72, 0.7);

                            .fe_fs_post_date,
                            .fe_fs_post_status {
                                background: rgba(255, 255, 255, 0.6);
                                padding: 0.25rem 0.75rem;
                                border-radius: 15px;
                                font-weight: 500;
                            }
                        }
                    }

                    .fe_fs_post_actions {
                        display: flex;
                        gap: 0.75rem;
                        margin-left: 1rem;

                        .fe_fs_edit__btn,
                        .fe_fs_delete__btn {
                            .link-icon {
                                display: inline-flex;
                                align-items: center;
                                justify-content: center;
                                width: 45px;
                                height: 45px;
                                border-radius: 50%;
                                transition: all 0.3s ease;
                                text-decoration: none;
                                border: none;
                                cursor: pointer;

                                .fe_fs_icon {
                                    width: 18px;
                                    height: 18px;
                                    transition: all 0.3s ease;
                                    filter: brightness(0) invert(1);
                                }

                                &.disabled {
                                    opacity: 0.6;
                                    cursor: not-allowed;
                                    pointer-events: none;
                                    background: rgba(156, 163, 175, 0.4) !important;

                                    .fe_fs_icon {
                                        width: 16px !important;
                                        height: 16px !important;
                                        opacity: 0.7;
                                        filter: brightness(0) invert(0.5);
                                    }
                                }
                            }
                        }

                        .fe_fs_edit__btn .link-icon {
                            background: rgba(72, 187, 120, 0.8);
                            backdrop-filter: blur(10px);

                            &:hover:not(.disabled) {
                                background: rgba(72, 187, 120, 1);
                                transform: translateY(-3px) scale(1.1);
                                box-shadow: 0 10px 25px rgba(72, 187, 120, 0.4);
                            }
                        }

                        .fe_fs_delete__btn .link-icon {
                            background: rgba(245, 101, 101, 0.8);
                            backdrop-filter: blur(10px);

                            &:hover:not(.disabled) {
                                background: rgba(245, 101, 101, 1);
                                transform: translateY(-3px) scale(1.1);
                                box-shadow: 0 10px 25px rgba(245, 101, 101, 0.4);
                            }
                        }
                    }
                }
            }

            // Pagination styling
            .pagination {
                display: flex;
                justify-content: space-around;
                padding: 1.5rem 0.5rem;

                .page-numbers {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    padding: 0.75rem 1rem;
                    margin: 0 0.25rem;
                    color: #4a5568;
                    text-decoration: none;
                    border: none;
                    border-radius: 0;
                    transition: all 0.3s ease;
                    font-weight: 500;
                    font-size: 1rem;
                    background: rgba(255, 255, 255, 0.8);
                    backdrop-filter: blur(10px);
                    min-width: 45px;

                    &:hover {
                        background: rgba(255, 255, 255, 0.9);
                        transform: translateY(-2px);
                        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
                    }

                    &.current {
                        background: linear-gradient(135deg, #667eea, #764ba2);
                        color: white;
                        transform: translateY(-2px);
                        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
                    }
                }
            }

            // No posts message
            .fe_fs_no_posts {
                text-align: center;
                padding: 3rem 2rem;

                p {
                    color: #4a5568;
                    font-size: 1.2rem;
                    margin: 0;
                    font-weight: 300;
                }
            }
        }

        // Responsive Design
        @media (max-width: 768px) {
            .fe_fs_header_buttons {
                padding: 1rem 1.5rem;
                flex-direction: column;
                gap: 1rem;

                .fe_fs_tabs {
                    flex-direction: column;
                    width: 100%;

                    li {
                        a button {
                            padding: 1rem;
                            text-align: center;
                            font-size: 0.9rem;
                        }
                    }
                }
            }

            .fe_fs_post_list {

                .fe_fs_title {
                    padding: 1.5rem 1rem;
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 1rem;

                    strong {
                        font-size: 1.5rem;
                    }
                }

                .fe_fs_posts_container {
                    .fe_fs_post_item {
                        padding: 1rem;
                        flex-wrap: wrap;
                        gap: 1rem;

                        .fe_fs_post_thumbnail {
                            width: 60px;
                            margin-right: 0;

                            .img__box {
                                width: 50px;
                                height: 50px;
                            }
                        }

                        .fe_fs_post_content {
                            flex: 1;
                            min-width: 200px;

                            .fe_fs_post_title a {
                                font-size: 1rem;
                            }

                            .fe_fs_post_meta {
                                flex-direction: column;
                                gap: 0.5rem;
                            }
                        }

                        .fe_fs_post_actions {
                            margin-left: 0;

                            .fe_fs_edit__btn,
                            .fe_fs_delete__btn {
                                .link-icon {
                                    width: 40px;
                                    height: 40px;

                                    .fe_fs_icon {
                                        width: 16px;
                                        height: 16px;
                                    }
                                }
                            }
                        }
                    }
                }

                .pagination {
                    padding: 1rem;
                    flex-wrap: wrap;
                    gap: 0.5rem;
                    flex-direction: column;
                }
            }
        }

        @media (max-width: 480px) {
            .fe_fs_header_buttons {
                padding: 1rem;

                .fe_fs_tabs {
                    li a button {
                        padding: 0.75rem;
                        font-size: 0.85rem;
                    }
                }
            }

            .fe_fs_post_list {

                .fe_fs_title {
                    padding: 1rem;
                }

                .fe_fs_posts_container {
                    .fe_fs_post_item {
                        padding: 0.75rem;
                        flex-direction: column;
                        align-items: flex-start;

                        .fe_fs_post_content {
                            min-width: auto;
                            width: 100%;

                            .fe_fs_post_title a {
                                font-size: 0.9rem;
                            }
                        }

                        .fe_fs_post_actions {
                            align-self: flex-end;
                        }
                    }
                }

                .pagination {
                    padding: 0.75rem 0.5rem;

                    .page-numbers {
                        padding: 0.5rem 0.75rem;
                        font-size: 0.9rem;
                    }
                }
            }
        }
    }
}
