/*
Theme Name: Studio Tour
Description: A custom WordPress theme for Studio Tour with user registration and login functionality.
Version: 1.0.0
Author: Studio Tour
*/

/* Reset and base styles */
* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.6; color: #333; background-color: #f8f9fa; }
a { color: #3d6389; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header styles */
.site-header { background: #fff; border-bottom: 1px solid #e0e0e0; position: relative; }
.header-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 1rem 0; }
.site-branding { display: flex; align-items: center; gap: 1rem; }
.site-logo { height: 60px; width: auto; max-width: 200px; }

/* Ensure consistent logo size across all page types */
.single-product .site-logo, .woocommerce .site-logo, .woocommerce-page .site-logo { height: 60px; width: auto; max-width: 200px; }
.site-title { font-size: 1.8rem; font-weight: 700; margin: 0; }
.site-title a { color: #333; text-decoration: none; }
.site-title a:hover { color: #3d6389; }
.site-description { color: #666; font-size: 0.9rem; margin: 0.25rem 0 0 0; }
.menu-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 0.5rem; z-index: 1001; align-items: center; gap: 0.5rem; }
.menu-toggle-icon { display: flex; flex-direction: column; width: 24px; height: 18px; justify-content: space-between; }
.menu-toggle-icon span { display: block; height: 2px; width: 100%; background-color: #333; border-radius: 2px; transition: all 0.3s ease; }
.menu-toggle.is-active .menu-toggle-icon span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .menu-toggle-icon span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .menu-toggle-icon span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-toggle-label { font-size: 0.9rem; font-weight: 500; color: #333; }
.main-navigation { border-top: 1px solid #e0e0e0; display: flex; justify-content: center; }
.nav-tabs { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; justify-content: center; }
.nav-tabs li { margin: 0; }
.nav-tab { display: block; padding: 1rem 1.5rem; color: #666; text-decoration: none; font-weight: 500; transition: all 0.3s ease; border-bottom: 3px solid transparent; text-align: center; }
.nav-tab:hover { color: #3d6389; background-color: #f8f9fa; }
.nav-tab.active { color: #3d6389; border-bottom-color: #3d6389; }
.user-actions { display: flex; align-items: center; gap: 1rem; }
.logged-in-user, .logged-out-user { display: flex; align-items: center; gap: 1rem; }
.cart-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background-color: #3d6389; color: white; text-decoration: none; border-radius: 4px; font-weight: 500; transition: background-color 0.3s ease; }
.cart-link:hover { background-color: #2d4d69; color: white; }
.cart-link svg { flex-shrink: 0; }
.welcome-message { color: #666; font-size: 0.9rem; }
.login-link, .logout-link { padding: 0.5rem 1rem; border-radius: 4px; text-decoration: none; font-size: 0.9rem; transition: all 0.3s ease; }
.login-link { color: #666; border: 1px solid #ddd; }
.login-link:hover { background: #f8f9fa; border-color: #3d6389; color: #3d6389; }
.logout-link { color: #dc3545; border: 1px solid #dc3545; }
.logout-link:hover { background: #dc3545; color: #fff; }

/* Main content */
.site-main { padding: 2rem 0; min-height: calc(100vh - 200px); }

/* Page header styles (used across various pages) */
.page-header { text-align: center; margin-bottom: 3rem; }
.page-title { font-size: 2.5rem; color: #333; margin-bottom: 1rem; }

/* Posts */
.posts-container { display: grid; gap: 2rem; }
.post-item { background: #fff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); overflow: hidden; }
.entry-header { padding: 1.5rem 1.5rem 0 1.5rem; }
.entry-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.entry-title a { color: #333; text-decoration: none; }
.entry-title a:hover { color: #3d6389; }
.entry-meta { color: #666; font-size: 0.9rem; margin-bottom: 1rem; }
.entry-content { padding: 0 1.5rem; margin-bottom: 1rem; }
.entry-footer { padding: 0 1.5rem 1.5rem 1.5rem; }
.read-more { color: #3d6389; text-decoration: none; font-weight: 500; }
.read-more:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: #e8e8e8; color: #333; padding: 3rem 0; margin-top: 3rem; }
.footer-sections { display: flex; gap: 3rem; justify-content: space-between; align-items: flex-start; }
.footer-section { flex: 1; display: flex; flex-direction: column; gap: .5rem; text-align: center; align-items: center; }
.footer-logo { height: 60px !important; width: auto; max-width: 180px !important; object-fit: contain; }
.footer-tour .footer-logo { padding: 7px; }
.footer-tagline { font-size: 0.9rem; line-height: 1.5; color: #666; margin: 0; }
.footer-links { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.footer-links .separator { color: #999; }
.site-footer a { color: #333; text-decoration: none; transition: color 0.3s ease; }
.site-footer a:hover { color: #3d6389; }

/* Responsive design */
@media (max-width: 768px) {
    .container { padding: 0 10px; }
    .site-main { padding: 1rem 0; }
    .header-top { flex-direction: column; gap: 1rem; align-items: center; }
    .site-branding { flex-direction: row; text-align: center; gap: 0.5rem; width: 100%; justify-content: center; align-items: center; }
    .site-title { font-size: 1.4rem; }
    .site-logo { height: 50px; max-width: 150px; }
    /* Keep consistent logo size on WooCommerce pages even on mobile */
    .single-product .site-logo, .woocommerce .site-logo, .woocommerce-page .site-logo { height: 60px; max-width: 200px; }
    .user-actions { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
    .logged-in-user, .logged-out-user { flex-direction: row; justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem; }
    .cart-link { justify-content: center; padding: 0.5rem 0.75rem; font-size: 0.85rem; }
    .login-link, .logout-link { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
    .menu-toggle { display: flex; }
    .menu-toggle-icon { margin-left: auto; flex-shrink: 0; }
    .main-navigation { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #e0e0e0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; z-index: 1000; }
    .main-navigation.is-open { max-height: 500px; border-bottom: 1px solid #e0e0e0; }
    .nav-tabs { flex-direction: column; align-items: stretch; width: 100%; }
    .nav-tabs li { width: 100%; border-bottom: 1px solid #f0f0f0; }
    .nav-tabs li:last-child { border-bottom: none; }
    .nav-tab { padding: 1rem 1.5rem; border-bottom: none; border-left: 3px solid transparent; }
    .nav-tab.active { border-left-color: #3d6389; border-bottom-color: transparent; }
    .page-title { font-size: 2rem; }
    .footer-sections { flex-direction: column; gap: 2rem; align-items: center; }
    .footer-links { justify-content: center; }
    .entry-header { padding: 0.75rem 0.75rem 0 0.75rem; }
    .entry-content { padding: 0 0.75rem; }
    .entry-footer { padding: 0 0.75rem 0.75rem 0.75rem; }
}

/* Single post and page styles */
.page-content { background: #fff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); padding: 2rem; margin: 2rem 0; }
.single-post .entry-title, .page-content .entry-title { font-size: 2.5rem; color: #333; margin-bottom: 1rem; margin-top: 0; line-height: 1.2; }
.single-post .entry-meta, .page-content .entry-meta { color: #666; font-size: 0.9rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid #eee; }
.single-post .entry-content, .page-content .entry-content { font-size: 1.1rem; line-height: 1.8; color: #333; }
.single-post .entry-content p, .page-content .entry-content p { margin-bottom: 1.5rem; }
.single-post .entry-content h2, .page-content .entry-content h2 { font-size: 1.8rem; color: #333; margin: 2rem 0 1rem 0; }
.single-post .entry-content h3, .page-content .entry-content h3 { font-size: 1.5rem; color: #333; margin: 1.5rem 0 1rem 0; }
.single-post .entry-content ul, .page-content .entry-content ul, .single-post .entry-content ol, .page-content .entry-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.single-post .entry-content li, .page-content .entry-content li { margin-bottom: 0.5rem; }
.page-links { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #eee; color: #666; }
.page-links a { color: #3d6389; text-decoration: none; margin: 0 0.25rem; padding: 0.25rem 0.5rem; border: 1px solid #ddd; border-radius: 3px; }
.page-links a:hover { background: #f8f9fa; border-color: #3d6389; }

/* Front Page Styles */
.front-page { background: #f8f9fa; min-height: calc(100vh - 200px); }
.page-content-wrapper { max-width: 900px; margin: 0 auto; padding: 2rem 0; }
.front-page .page-header { text-align: center; margin-bottom: 3rem; color: #666;  }
.front-page .page-title { font-size: 3rem; color: #333; margin-bottom: 1rem; font-weight: 700; }
.page-description { font-size: 1.2rem; max-width: 900px; margin: 1.5rem auto 0 auto; background-color: #e8f4f8; border: 2px solid #3d6389; padding: .5em 1.5em; border-radius: 8px; }

.user-dashboard { display: grid; gap: 3rem; }
.user-info { background: #fff; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center; }
.user-info h2 { color: #333; margin-bottom: 0.5rem; font-size: 1.8rem; }
.user-info p { color: #666; font-size: 1.1rem; margin: 0; }

/* Compact Registrations Section */
.compact-shop-section { background: #f8f9fa; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 2rem; overflow: hidden; }
.shop-header { display: flex; align-items: center; padding: 1rem 1.5rem; gap: 1rem; border-bottom: 1px solid #e0e0e0; background: #3b8a88; border-radius: 8px 8px 0 0; margin-bottom: 2rem; }
.product-title { font-weight: 600; color: #3d6389; font-size: 1rem; }
.product-price { color: #333; font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.product-actions { flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem; }
.product-toggle-btn { display: inline-flex; align-items: center; gap: 0.375rem; background: transparent; border: none; color: #3d6389; padding: 0; cursor: pointer; transition: all 0.3s ease; font-size: 0.85rem; font-weight: 500; white-space: nowrap; justify-self: start; }
.product-toggle-btn:hover { color: #2d4d69; text-decoration: underline; }
.toggle-label { display: inline; }
.product-toggle-btn[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }
.toggle-icon { transition: transform 0.3s ease; }
.post-item .product-description { overflow: hidden; max-height: 0; }
.post-item .product-description[hidden] { display: none; max-height: 0; }
.post-item .product-description.is-visible:not([hidden]) { max-height: 1000px; }
.product-description-content { margin-top: 1rem; border-top: 1px solid #e9ecef; padding: 1rem 0 0 0; color: #666; font-size: 0.9rem; line-height: 1.6; }
.product-description-content p { margin: 0 0 0.75rem 0; }
.product-description-content p:last-child { margin-bottom: 0; }
.product-actions .button, .product-actions .add_to_cart_button, .product-actions .added_to_cart { display: inline-block; margin: 0; padding: 0.75rem 1.5rem; background: #3d6389; color: #fff !important; border: none; border-radius: 4px; font-size: 0.9rem; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: all 0.3s ease; }
.product-actions .button:hover, .product-actions .add_to_cart_button:hover { background: #2d4d69; transform: translateY(-1px); }
.product-actions .added_to_cart { background: #3d8946; }
.product-actions .added_to_cart:hover { background: #2d6934; }
.product-actions .added_to_cart ~ .add_to_cart_button, .product-actions .added_to_cart ~ .button { display: none; }
.product-actions:has(.added_to_cart) .add_to_cart_button { display: none; }
.no-products-message { padding: 2rem 1.5rem; text-align: center; color: #666; }
.shop-icon { width: 40px; height: 40px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #3b8a88; flex-shrink: 0; }
.shop-header .shop-icon { background: #fff; color: #3b8a88; }
.shop-info { flex: 1; min-width: 0; }
.shop-info h3 { color: #fff; margin: 0 0 0.25rem 0; font-size: 1.1rem; font-weight: 600; }
.shop-info p { color: rgba(255, 255, 255, 0.9); margin: 0; font-size: 0.9rem; line-height: 1.4; }
.products-by-category { padding: 0; }
.products-by-category h3 { color: #333; margin-bottom: 1.5rem; font-size: 1.2rem; border-bottom: 2px solid #3b8a88; padding-bottom: 0.5rem; }
.category-description { margin: 0 0 1rem 0; font-size: 0.9rem; color: #666; line-height: 1.4; }
.shop-link { display: inline-flex; align-items: center; background: #3d6389; color: #fff; padding: 0.5rem 1rem; border-radius: 6px; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: background-color 0.3s ease; flex-shrink: 0; }
.shop-link:hover { background: #2d4d69; color: #fff; }
.actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.action-button { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 1rem; background: #f8f9fa; color: #333; text-decoration: none; border-radius: 8px; font-weight: 500; transition: all 0.3s ease; border: 2px solid transparent; }
.action-button:hover { background: #e9ecef; border-color: #3d6389; color: #3d6389; }
.action-button.logout:hover { background: #f8d7da; border-color: #dc3545; color: #dc3545; }


/* Responsive design for front page */
@media (max-width: 768px) {
    .front-page .page-title { font-size: 2.5rem; }
    .page-description { font-size: 1.1rem; }
    .page-content-wrapper { padding: 1rem 0; }
    .actions-grid { grid-template-columns: 1fr; }
    .user-info { padding: 0.75rem; }
    /* Compact registrations section mobile styles */
    .shop-header { flex-direction: row; align-items: center; gap: 0.75rem; padding: 0.5rem; }
    .shop-icon { width: 36px; height: 36px; }
    .shop-info h3 { font-size: 1rem; }
    .shop-info p { font-size: 0.85rem; }
    .shop-link { width: 100%; justify-content: center; padding: 0.75rem 1rem; }
    .post-info { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .post-info .product-price { margin-left: 0; }
    .product-title { font-size: 0.95rem; }
    .product-toggle-btn { font-size: 0.8rem; }
    .product-price { font-size: 1rem; }
    .product-actions { width: 100%; flex-direction: row; }
    .product-actions .button, .product-actions .add_to_cart_button, .product-actions .added_to_cart { flex: 1; justify-content: center; text-align: center; padding-left: 0.75rem; padding-right: 0.75rem; }
    .category-description { font-size: 0.85rem; }
    .product-description-content { padding: 0.375rem 0.5rem; font-size: 0.85rem; }
}

/* Screen reader text */
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.screen-reader-text:focus { background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); clip: auto !important; color: #21759b; display: block; font-size: 14px; font-weight: bold; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }

/* Studio Listing Styles */
.single-studio-listing { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 2rem; margin: 2rem 0; }
.studio-details { margin: 2rem 0; padding: 1.5rem; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #3b8a88; }
.studio-details h2 { color: #3b8a88; margin-bottom: 1.5rem; font-size: 1.5rem; font-weight: 600; }
.studio-field { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #e9ecef; }
.studio-field:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.studio-field h3 { color: #495057; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.studio-field p { margin: 0; color: #6c757d; line-height: 1.5; }
.studio-field a { color: #3d6389; text-decoration: none; transition: color 0.3s ease; }
.studio-field a:hover { color: #2d4d69; text-decoration: underline; }
.studio-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.studio-photo { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.studio-photo:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }

/* ACF Frontend Form Styles */
.studio-edit-form { margin: 2rem 0; padding: 2rem; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border: 2px solid #3b8a88; }
.studio-edit-form h2 { color: #3b8a88; margin-bottom: 1.5rem; font-size: 1.5rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.studio-edit-form h2:before { content: "✏️"; font-size: 1.2rem; }
.acf-frontend-form { max-width: 100%; }
.acf-frontend-form .acf-fields { border: none; padding: 0; }
.acf-frontend-form .acf-field { margin-bottom: 1.5rem; padding: 0; border: none; }
.acf-frontend-form .acf-label { margin-bottom: 0.5rem; }
.acf-frontend-form .acf-label label { font-weight: 600; color: #495057; font-size: 0.95rem; }
.acf-frontend-form .acf-input { width: 100%; }
.acf-frontend-form input[type="text"], .acf-frontend-form input[type="email"], .acf-frontend-form input[type="url"], .acf-frontend-form input[type="tel"], .acf-frontend-form textarea, .acf-frontend-form select { width: 100%; padding: 0.75rem; border: 1px solid #ced4da; border-radius: 4px; font-size: 1rem; line-height: 1.5; color: #495057; background-color: #fff; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
.acf-frontend-form input[type="text"]:focus, .acf-frontend-form input[type="email"]:focus, .acf-frontend-form input[type="url"]:focus, .acf-frontend-form input[type="tel"]:focus, .acf-frontend-form textarea:focus, .acf-frontend-form select:focus { border-color: #3d6389; outline: 0; box-shadow: 0 0 0 0.2rem rgba(61, 99, 137, 0.25); }
.acf-frontend-form textarea { min-height: 120px; resize: vertical; }
.acf-frontend-form .acf-button { background: #3d6389; color: #fff; border: none; padding: 0.75rem 2rem; font-size: 1rem; font-weight: 600; border-radius: 4px; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; }
.acf-frontend-form .acf-button:hover { background: #2d4d69; transform: translateY(-1px); }
.acf-frontend-form .acf-button:active { transform: translateY(0); }
.acf-frontend-form .acf-success-message { background: #d4efd9; color: #245429; padding: 1rem; border-radius: 4px; border: 1px solid #b3e0ba; margin-bottom: 1rem; }
.acf-frontend-form .acf-error-message { background: #f8d7da; color: #721c24; padding: 1rem; border-radius: 4px; border: 1px solid #f5c6cb; margin-bottom: 1rem; }

/* Responsive styles for studio listings */
@media (max-width: 768px) {
    .single-studio-listing { padding: 0.5rem; margin: 0.5rem 0; }
    .studio-details { margin: 1rem 0; padding: 0.75rem; }
    .studio-field { margin-bottom: 0.75rem; padding-bottom: 0.5rem; }
    .studio-edit-form { margin: 1rem 0; padding: 0.5rem; }
    .studio-edit-form h2 { margin-bottom: 0.75rem; }
    .acf-frontend-form .acf-field { margin-bottom: 0.75rem; }
    .acf-frontend-form .acf-label { margin-bottom: 0.25rem; }
    .acf-frontend-form input[type="text"], .acf-frontend-form input[type="email"], .acf-frontend-form input[type="url"], .acf-frontend-form input[type="tel"], .acf-frontend-form textarea, .acf-frontend-form select { padding-left: 0.375rem; padding-right: 0.375rem; }
    .acf-frontend-form .acf-button { padding-left: 1rem; padding-right: 1rem; }
    .acf-frontend-form .acf-success-message, .acf-frontend-form .acf-error-message { padding-left: 0.5rem; padding-right: 0.5rem; margin-bottom: 0.5rem; }
    .studio-photos { grid-template-columns: 1fr; }
    .studio-photo { height: 250px; }
}


/* ============================================================================
   LOGIN PAGE STYLES
   ============================================================================ */

.login h1 a { background-image: url('assets/images/logo.png') !important; background-size: contain; background-repeat: no-repeat; background-position: center; width: 200px; height: 80px; }
.login h1 a:focus { box-shadow: none; outline: 2px solid #3d6389; outline-offset: 2px; }

/* ============================================================================
   HOMEPAGE WOOCOMMERCE INTEGRATION STYLES
   ============================================================================ */

/* WooCommerce Price Elements - ensure non-link prices are not blue */
.woocommerce-Price-amount, .amount, .woocommerce-Price-amount.amount { color: inherit; }
.product-price .woocommerce-Price-amount, .product-price .amount { color: #333; }

.user-dashboard-content { background: #fff; border-radius: 8px; padding: 2rem; margin: 2rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.user-content-section { margin-bottom: 2rem; }
.registration-shop-link-section { margin-top: 2rem; text-align: center; }
.user-content-section h3 { color: #333; margin-bottom: 1.5rem; font-size: 1.2rem; border-bottom: 2px solid #3b8a88; padding-bottom: 0.5rem; }
.content-type-section { margin-bottom: 2rem; background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 1.5rem; }
.content-type-title { display: flex; align-items: center; gap: 0.5rem; color: #3b8a88; margin-bottom: 1rem; font-size: 1.1rem; font-weight: 600; }
.content-type-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #3b8a88; border-radius: 6px; color: #fff; }
.posts-list { display: flex; flex-direction: column; gap: 0.75rem; }
.post-item { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 6px; padding: 1rem; }
.post-info { display: flex; align-items: center; gap: 1rem; width: 100%; flex-wrap: wrap; }
.post-info .post-title { flex: 0 1 auto; min-width: 0; }
.post-info .product-toggle-btn { flex-shrink: 0; }
.post-info .product-price { flex-shrink: 0; margin-left: auto; }
.post-info .product-actions { flex-shrink: 0; }
.post-item .post-info { margin-bottom: 0; }
.post-title a { font-weight: 600; color: #3d6389; text-decoration: none; font-size: 1rem; }
.post-title a:hover { text-decoration: underline; }
.post-date { color: #666; font-size: 0.9rem; white-space: nowrap; }
.post-categories { color: #666; font-size: 0.9rem; white-space: nowrap; }
.post-categories.no-categories { color: #6c757d; font-style: italic; }
.post-visibility { background: #e2e3e5; color: #6c757d; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.8rem; font-weight: 500; white-space: nowrap; }
.no-content-message { text-align: center; padding: 2rem; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 6px; }
.no-content-message p { color: #666; margin-bottom: 1.5rem; }
.create-content-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.no-content-message .button { background: #3d8946; color: white; padding: 0.5rem 1rem; border-radius: 4px; text-decoration: none; font-weight: 500; transition: background 0.2s; }
.no-content-message .button:hover { background: #2d6934; color: white; }
.button-secondary { background: #6c757d; color: white; }
.button-secondary:hover { background: #5a6268; color: white; }
.account-quick-links h3 { color: #333; margin-bottom: 1rem; font-size: 1.1rem; }
.quick-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.quick-link { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 6px; text-decoration: none; color: #333; transition: all 0.2s; }
.quick-link:hover { background: #e9ecef; border-color: #3d6389; color: #3d6389; text-decoration: none; }
.link-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #fff; border-radius: 50%; color: #3b8a88; }
.link-label { font-weight: 500; }

@media (max-width: 768px) {
    .woocommerce-account-dashboard { padding: 0.5rem; margin: 0.5rem 0; }
    .user-dashboard-content { padding: 1rem; margin: 1rem 0; }
    .content-type-section { padding: 0.75rem; }
    .post-info { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .post-info .product-price { margin-left: 0; }
    .create-content-links { flex-direction: column; align-items: center; }
    .quick-links-grid { grid-template-columns: 1fr; }
    .page-content { padding: 1rem; margin: 1rem 0; }
}

/* Email edit button styles */
.email-edit-button { background-color: #3d6389; color: white; padding: 12px 24px; text-decoration: none; border-radius: 4px; display: inline-block; margin: 5px; }

/* Debug styles */
.debug-error-message { color: red; }
.debug-success-message { color: #3d8946; }
.debug-button { background: #3d6389; color: white; padding: 10px; text-decoration: none; }

/* Utility classes */
.text-center { text-align: center; }
