/**
 * Corporate/Professional Design for User Admin
 * File: src/scss/components/user-admin-corporate-professional.scss
 */

.fe-admin-design-corporate-professional {
    &.fe_fs_user_admin_wrap {
        font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
        background: #fafbfc;
        min-height: 100vh;
        color: #2c3e50;
        padding: 0;

        // Header with tabs and logout
        .fe_fs_header_buttons {
            background: #34495e;
            padding: 1.5rem 2rem;
            margin-bottom: 0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;

            .fe_fs_tabs {
                display: flex;
                list-style: none;
                margin: 0;
                padding: 0;
                gap: 0;

                li {
                    a {
                        text-decoration: none;

                        button {
                            background: transparent;
                            border: none;
                            padding: 1rem 2rem;
                            color: #bdc3c7;
                            font-weight: 500;
                            cursor: pointer;
                            transition: all 0.2s ease;
                            font-size: 0.95rem;
                            border-bottom: 3px solid transparent;

                            &:hover {
                                background: #3d566e;
                                color: #ecf0f1;
                                border-bottom-color: #3498db;
                            }
                        }
                    }

                    &.active-tab {
                        a button {
                            background: #2980b9;
                            color: white;
                            border-bottom-color: #f39c12;
                        }
                    }
                }
            }

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

                    button {
                        background: #3498db;
                        color: white;
                        border: none;
                        border-radius: 4px;
                        padding: 0.75rem 1.5rem;
                        font-size: 0.95rem;
                        font-weight: 600;
                        cursor: pointer;
                        transition: all 0.2s ease;
                        min-width: 120px;

                        &:hover {
                            background: #2980b9;
                            transform: translateY(-1px);
                            box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
                        }
                    }
                }
            }
        }

        // Main content area
        .fe_fs_post_list {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
            border: 1px solid #e9ecef;
            overflow: hidden;

            .fe_fs_title {
                background: #f8f9fa;
                padding: 2rem;
                border-bottom: 1px solid #e9ecef;
                display: flex;
                align-items: center;
                justify-content: space-between;

                strong {
                    color: #2c3e50;
                    font-size: 1.5rem;
                    font-weight: 600;
                    position: relative;

                    &::after {
                        content: "";
                        position: absolute;
                        bottom: -0.5rem;
                        left: 0;
                        width: 60px;
                        height: 2px;
                        background: #3498db;
                    }
                }

                a {
                    color: #3498db;
                    text-decoration: none;
                    font-size: 0.95rem;
                    font-weight: 500;
                    padding: 0.5rem 1rem;
                    border: 2px solid #3498db;
                    border-radius: 4px;
                    transition: all 0.2s ease;

                    &:hover {
                        background: #3498db;
                        color: white;
                    }
                }
            }

            // Posts container styling
            .fe_fs_posts_container {
                .fe_fs_post_item {
                    display: flex;
                    align-items: center;
                    padding: 1.5rem 2rem;
                    border-bottom: 1px solid #f8f9fa;
                    transition: all 0.2s ease;

                    &:hover {
                        background: #f8f9fa;
                    }

                    &:nth-child(even) {
                        background: #fdfdfd;

                        &:hover {
                            background: #f8f9fa;
                        }
                    }

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

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

                        a {
                            display: block;

                            .img__box {
                                width: 60px;
                                height: 60px;
                                background: #f8f9fa;
                                border: 2px solid #e9ecef;
                                border-radius: 4px;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                transition: all 0.2s ease;
                                overflow: hidden;
                                position: relative;

                                &::before {
                                    content: "📋";
                                    font-size: 1.5rem;
                                    opacity: 0.6;
                                }

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

                                &:hover {
                                    border-color: #3498db;
                                    transform: scale(1.05);
                                    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
                                }
                            }
                        }
                    }

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

                        .fe_fs_post_title {
                            a {
                                color: #2c3e50;
                                text-decoration: none;
                                font-weight: 600;
                                font-size: 1.1rem;
                                transition: all 0.2s ease;
                                display: block;
                                line-height: 1.4;

                                &:hover {
                                    color: #3498db;
                                }
                            }
                        }

                        .fe_fs_post_meta {
                            margin-top: 0.5rem;
                            display: flex;
                            gap: 1rem;
                            font-size: 0.85rem;
                            color: #6c757d;

                            .fe_fs_post_date,
                            .fe_fs_post_status {
                                background: #e9ecef;
                                padding: 0.25rem 0.75rem;
                                border-radius: 4px;
                                font-weight: 500;
                                border: 1px solid #ced4da;
                            }
                        }
                    }

                    .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: 40px;
                                height: 40px;
                                border-radius: 4px;
                                transition: all 0.2s ease;
                                text-decoration: none;
                                cursor: pointer;

                                .fe_fs_icon {
                                    width: 18px;
                                    height: 18px;
                                    transition: all 0.2s ease;
                                }

                                &.disabled {
                                    opacity: 0.6;
                                    cursor: not-allowed;
                                    pointer-events: none;
                                    background: #e9ecef !important;
                                    border-color: #ced4da !important;

                                    .fe_fs_icon {
                                        width: 16px !important;
                                        height: 16px !important;
                                        opacity: 0.7;
                                    }
                                }
                            }
                        }

                        .fe_fs_edit__btn .link-icon {
                            background: #d4edda;
                            border: 1px solid #c3e6cb;

                            &:hover:not(.disabled) {
                                background: #c3e6cb;
                                transform: translateY(-1px);
                                box-shadow: 0 4px 8px rgba(39, 174, 96, 0.2);
                            }
                        }

                        .fe_fs_delete__btn .link-icon {
                            background: #f8d7da;
                            border: 1px solid #f5c6cb;

                            &:hover:not(.disabled) {
                                background: #f5c6cb;
                                transform: translateY(-1px);
                                box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
                            }
                        }
                    }
                }
            }

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

                .page-numbers {
                    display: inline-block;
                    padding: 0.5rem 0.75rem;
                    margin: 0 0.25rem;
                    color: #495057;
                    text-decoration: none;
                    border: 1px solid #ced4da;
                    border-radius: 4px;
                    transition: all 0.2s ease;
                    font-weight: 500;
                    font-size: 0.9rem;
                    background: white;
                    width: 90%;
                    text-align: center;

                    &:hover {
                        background: #e9ecef;
                        border-color: #adb5bd;
                    }

                    &.current {
                        background: #3498db;
                        color: white;
                        border-color: #3498db;
                    }
                }
            }

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

                p {
                    color: #6c757d;
                    font-size: 1.1rem;
                    margin: 0;
                }
            }
        }

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

                .fe_fs_tabs {
                    overflow-x: auto;

                    li a button {
                        white-space: nowrap;
                        padding: 0.75rem 1.5rem;
                    }
                }
            }

            .fe_fs_post_list {
                margin: 1rem;
            }
        }

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

                .fe_fs_tabs {
                    li a button {
                        padding: 0.5rem 1rem;
                        font-size: 0.9rem;
                    }
                }
            }

            .fe_fs_post_list {
                margin: 1rem;

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

                    strong {
                        font-size: 1.25rem;
                    }
                }

                .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: 35px;
                                    height: 35px;

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

                .pagination {
                    padding: 1rem;
                    flex-direction: column;
                    gap: 0.75rem;
                    align-items: center;
                }
            }
        }

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

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

            .fe_fs_post_list {
                margin: 0.5rem;

                .fe_fs_title {
                    padding: 1rem 0.5rem;
                }

                .fe_fs_posts_container {
                    .fe_fs_post_item {
                        padding: 0.75rem 0.5rem;
                        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;
                }
            }
        }
    }
}
