/* Asset Market Hub Frontend Styles */

.amh-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

.amh-asset-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

/* Sidebar (Right on large screens, top on mobile) */
.amh-asset-sidebar {
    flex: 1;
    min-width: 300px;
    order: 2;
}

/* Main Content (Left on large screens, bottom on mobile) */
.amh-asset-main {
    flex: 3; /* Increased flex to allow for 960px image */
    min-width: 300px;
    order: 1;
}

@media (max-width: 768px) {
    .amh-asset-sidebar { order: 1; }
    .amh-asset-main { order: 2; }
}

.amh-entry-title {
    margin-bottom: 30px;
}

.amh-responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.amh-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.amh-btn {
    display: block;
    padding: 15px 25px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.amh-btn-free {
    background-color: #2ecc71;
    color: #fff !important;
}

.amh-btn-free:hover {
    background-color: #27ae60;
}

.amh-btn-buy {
    background-color: #3498db; /* Blue for Buy Now */
    color: #fff !important;
}

.amh-btn-buy:hover {
    background-color: #2980b9;
}

.amh-ad {
    margin: 20px 0;
    text-align: center;
}

.amh-long-description {
    margin-top: 40px;
    line-height: 1.6;
}

/* Grid Layout (Shortcode) */
.amh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.amh-asset-card {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.amh-asset-card img {
    max-width: 100%;
    border-radius: 4px;
}

.amh-asset-card h3 {
    margin: 15px 0;
    font-size: 1.2rem;
}

/* Search Form */
.amh-search-form {
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.amh-search-main {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    position: relative;
}

.amh-search-suggestions {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0 0 15px 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.amh-search-suggestions li {
    border-bottom: 1px solid #f9f9f9;
}

.amh-search-suggestions li:last-child {
    border-bottom: none;
}

.amh-search-suggestions li a {
    display: block;
    padding: 12px 25px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.amh-search-suggestions li a:hover {
    background: #f5f5f5;
    color: #2ecc71;
}

.amh-search-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.amh-search-filters select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    min-width: 150px;
}

.amh-search-form input[type="text"] {
    flex: 1;
    max-width: 600px;
    padding: 15px 25px;
    border: 2px solid #f0f0f0;
    border-radius: 50px;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.amh-search-form input[type="text"]:focus {
    border-color: #2ecc71;
}

.amh-search-form button {
    padding: 12px 30px;
    background: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.amh-search-form button:hover {
    background: #27ae60;
}

/* Not Found State */
.amh-not-found {
    text-align: center;
    padding: 50px 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px dashed #ccc;
}

.amh-not-found p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 25px;
}

.amh-btn-whatsapp {
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.amh-btn-whatsapp:hover {
    background: #128c7e;
    color: #fff;
}

/* Countdown Styles */
.amh-download-wrapper {
    margin-bottom: 5px;
}

.amh-countdown-timer {
    background-color: #3498db; /* Blue color for countdown */
    border: 1px solid #2980b9;
    padding: 15px 25px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    color: #ffffff;
    cursor: default;
    display: block;
}

.amh-timer-text {
    color: #ffffff;
}

.amh-timer-count {
    font-size: 1.2em;
    color: #ffffff;
    display: inline-block;
    min-width: 25px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0 5px;
}

/* Copy Protection & Content Hiding */
.amh-no-copy {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.amh-copyright-notice-wrapper {
    position: relative;
    overflow: hidden;
    user-select: none;
}

/* Marketplace Badges & Meta */
.amh-market-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin: 25px 0; }
.amh-meta-item { background: #f8fafc; padding: 12px; border-radius: 10px; border: 1px solid #e2e8f0; text-align: center; }
.amh-meta-label { display: block; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: 5px; }
.amh-meta-value { display: block; font-size: 14px; font-weight: 800; color: #1e1e2d; }
.amh-file-badge { display: inline-block; padding: 4px 12px; border-radius: 50px; background: #007cba; color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; }

/* Changelog Styles */
.amh-changelog-wrapper { margin-top: 35px; background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; }
.amh-changelog-header { background: #f8fafc; padding: 15px 20px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 10px; }
.amh-changelog-header h3 { margin: 0; font-size: 16px; color: #1e1e2d; }
.amh-changelog-content { padding: 20px; font-size: 14px; color: #475569; white-space: pre-wrap; line-height: 1.6; }

/* AI Verify Progress */
.amh-verify-btn.loading { opacity: 0.7; cursor: wait; }

/* Social Sharing & Entry Meta */
.amh-entry-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #64748b;
    align-items: center;
}

.amh-entry-meta .amh-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 15px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.amh-entry-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #007cba;
}

.amh-badge-standard { background: #e0f2fe !important; color: #0369a1 !important; }
.amh-badge-premium { background: #fef3c7 !important; color: #92400e !important; }
.amh-badge-vector { background: #f0fdf4 !important; color: #166534 !important; }

.amh-social-sharing {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.amh-share-label {
    font-weight: 700;
    font-size: 14px;
    color: #475569;
}

.amh-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
}

.amh-share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.amh-share-whatsapp { background: #25d366; }
.amh-share-facebook { background: #1877f2; }
.amh-share-twitter { background: #1da1f2; }

.amh-share-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Search & Autocomplete */
.amh-search-main { position: relative; }
.amh-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.amh-autocomplete-results ul { list-style: none; margin: 0; padding: 0; }
.amh-autocomplete-results li { border-bottom: 1px solid #f1f5f9; }
.amh-autocomplete-results li:last-child { border-bottom: none; }
.amh-autocomplete-results a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    text-decoration: none;
    color: #1e1e2d;
    transition: background 0.2s;
}

.amh-autocomplete-results a:hover { background: #f8fafc; }
.amh-autocomplete-results img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.amh-autocomplete-results span {
    font-size: 14px;
    font-weight: 500;
}

/* Grid Badge & Actions */
.amh-card-thumbnail { position: relative; overflow: hidden; border-radius: 4px; }
.amh-card-badge { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #fff; z-index: 10; }
.amh-card-actions { display: flex; gap: 10px; margin-top: 15px; justify-content: center; }
.amh-btn-small { padding: 8px 15px; font-size: 12px; }
.amh-btn-whatsapp-grid { background: #25d366; color: #fff !important; width: 35px; height: 35px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.amh-btn-whatsapp-grid:hover { background: #128c7e; }
.amh-btn-whatsapp-grid .dashicons { font-size: 18px; width: 18px; height: 18px; }

/* Spin animation for loader */
@keyframes amh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin { animation: amh-spin 1s linear infinite; display: inline-block; }
.amh-technical-info {
    margin-top: 40px;
}

.amh-technical-info h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e1e2d;
}

.amh-technical-info h3 .dashicons {
    color: #007cba;
}

.amh-info-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.amh-info-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.amh-info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

.amh-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e1e2d;
}

.amh-info-value a {
    color: #007cba;
    text-decoration: none;
}

@media (max-width: 600px) {
    .amh-info-table {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Info Box Enhancements */
.amh-sidebar-info-box h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amh-sidebar-info-list div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #f1f5f9;
}

.amh-sidebar-info-list div:last-child {
    border-bottom: none;
}

.amh-sidebar-info-list strong {
    color: #64748b;
    font-weight: 600;
}

