/* ============================================
   Aqua Cut Collection - Library Styles
   Brand colors: Blue #a8b8d0 / Orange #e07030
   ============================================ */

/* Flatsome overrides - works with any page template */
body.acc-library-page,
body:has(.acc-wrapper) {
    background: #f0f3f0 !important;
}

body.acc-library-page #main,
body.acc-library-page #wrapper,
body.acc-library-page .page-wrapper,
body.acc-library-page #content,
body.acc-library-page .content-area,
body.acc-library-page .page-inner,
body.acc-library-page .page,
body.acc-library-page .entry-content,
body.acc-library-page article,
body.acc-library-page .post-inner {
    background: #f0f3f0 !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
}

body.acc-library-page .row,
body.acc-library-page .col,
body.acc-library-page .large-12,
body.acc-library-page .col-inner,
body.acc-library-page .container,
body.acc-library-page .section-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-basis: 100% !important;
}

body.acc-library-page .page-title-inner,
body.acc-library-page .page-title {
    display: none !important;
}

/* Reset within our wrapper */
.acc-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f0f3f0;
    overflow: hidden;
    line-height: 1.5;
    min-height: 100vh;
    border-radius: 0 !important;
}

.acc-wrapper * {
    box-sizing: border-box;
}

/* ---- Header ---- */
.acc-header {
    background: linear-gradient(180deg, #9aaccc 0%, #bcc8dd 100%);
}

.acc-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
}

.acc-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.acc-logo img {
    height: 28px;
    width: auto;
}

.acc-logo-text {
    font-size: 13px;
    font-weight: 500;
    color: #3a4a6a;
    letter-spacing: 1px;
}

.acc-header-brand {
    text-align: center;
    padding: 8px 0 0;
}

.acc-header-brand img {
    height: 30px;
    width: auto;
    opacity: 0.7;
}

.acc-user-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.acc-user-name {
    font-size: 13px;
    color: #3a4a6a;
    background: rgba(255, 255, 255, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
}

.acc-header-hero {
    text-align: center;
    padding: 12px 24px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.acc-header-hero h1 {
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #2a3a5a !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
}

.acc-header-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    max-width: 560px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.acc-dim-btn {
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1.5px solid #e07030;
    color: #e07030;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.4;
    height: 38px;
    display: inline-flex;
    align-items: center;
}

.acc-dim-btn:hover,
.acc-dim-btn.active {
    background: #e07030;
    color: #fff;
    text-decoration: none;
}

.acc-search-form {
    flex: 1;
    min-width: 160px;
}

.acc-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.6) !important;
    border: none !important;
    padding: 0 16px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    color: #2a3a5a !important;
    outline: none !important;
    box-shadow: none !important;
    height: 38px !important;
    line-height: 38px !important;
}

.acc-search-input::placeholder {
    color: #7888a8;
}

.acc-search-input:focus {
    background: rgba(255, 255, 255, 0.85);
}

/* ---- Category tabs ---- */
.acc-categories {
    background: #fff;
    padding: 0 32px;
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.acc-cat-tab {
    font-size: 13px;
    color: #888;
    padding: 14px 16px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.acc-cat-tab:hover {
    color: #555;
    text-decoration: none;
}

.acc-cat-tab.active {
    color: #e07030;
    border-bottom-color: #e07030;
}

/* ---- Grid area ---- */
.acc-grid-area {
    padding: 24px 32px 32px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60vh;
}

.acc-section-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.acc-count {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.acc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    transition: opacity 0.2s ease;
}

/* ---- Card ---- */
.acc-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.acc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.acc-badge-premium {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.acc-badge-new {
    position: absolute;
    bottom: 50px;
    left: 8px;
    z-index: 2;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    background: #e07030;
    color: #fff;
    letter-spacing: 0.5px;
}

.acc-card-preview {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
}

.acc-card-img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

.acc-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.acc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-top: 1px solid #f0f0f0;
}

.acc-card-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.acc-fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.acc-fav-btn:hover {
    transform: scale(1.2);
}

.acc-file-type {
    font-size: 10px;
    color: #aaa;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}

.acc-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #e07030;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.acc-download-btn:hover {
    background: #c85a20;
}

/* ---- Pagination ---- */
.acc-pagination {
    text-align: center;
    margin-top: 24px;
    padding: 16px 0 0;
}

.acc-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.acc-pagination .page-numbers.current {
    background: #e07030;
    color: #fff;
}

.acc-pagination .page-numbers:hover:not(.current) {
    background: #eee;
}

/* ---- Empty state ---- */
.acc-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.acc-empty a {
    color: #e07030;
    text-decoration: none;
}

/* ---- Footer ---- */
.acc-footer {
    background: #3a4a6a;
    padding: 14px 32px;
    text-align: center;
    font-size: 11px;
    color: #8899bb;
    letter-spacing: 1px;
}

/* ---- Login page ---- */
.acc-login-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #9aaccc 0%, #bcc8dd 60%, #f0f3f0 100%);
}

.acc-login-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    border-radius: 0;
}

.acc-login-inner {
    text-align: center;
    max-width: 420px;
}

.acc-login-aqua-logo {
    height: 36px;
    width: auto;
    margin-bottom: 12px;
}

.acc-login-inner h2 {
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #2a3a5a !important;
    margin: 0 0 12px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.acc-login-pomati-logo {
    height: 26px;
    width: auto;
    opacity: 0.6;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.acc-login-inner p {
    font-size: 14px;
    color: #4a5a7a;
    margin: 0 0 24px;
}

.acc-login-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.acc-login-btn {
    display: inline-block;
    background: #e07030;
    color: #fff !important;
    padding: 10px 32px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.2s;
}

.acc-login-btn:hover {
    background: #c85a20;
    color: #fff !important;
    text-decoration: none !important;
}

.acc-register-btn {
    background: transparent !important;
    border: 1.5px solid #3a4a6a;
    color: #3a4a6a !important;
}

.acc-register-btn:hover {
    background: #3a4a6a !important;
    color: #fff !important;
}

/* ---- Logout button ---- */
.acc-logout-btn {
    font-size: 12px;
    color: #3a4a6a;
    background: rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
    border: 1px solid rgba(58, 74, 106, 0.3);
}

.acc-logout-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    color: #3a4a6a;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .acc-header-hero h1 {
        font-size: 18px;
    }

    .acc-header-controls {
        flex-direction: column;
        gap: 8px;
    }

    .acc-search-form {
        width: 100%;
    }

    .acc-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .acc-categories {
        padding: 0 12px;
    }

    .acc-cat-tab {
        padding: 12px 10px;
        font-size: 12px;
    }

    .acc-grid-area {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .acc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .acc-header-top {
        padding: 10px 16px;
    }
}
