Actions

Template

ResourcePage/styles.css: Difference between revisions

From Dune Awakening DB

 
mNo edit summary
Line 1: Line 1:
/**********************************************************
/**********************************************************
  *  Template:ResourcePage/styles.css  (stand-alone bundle)
  *  Template:ResourcePage/styles.css  (TemplateStyles version)
  *  Dune Awakening — Resource Page
  *  Dune Awakening — Resource Page
  *  v1.1 · 2025-05-26
  *  v1.2 · 2025-05-27
*  This version is compliant with MediaWiki TemplateStyles restrictions
  **********************************************************/
  **********************************************************/


/* ========================================================
/* ========================================================
   SECTION 0 · SHARED BUILDING-PAGE RULES
   RESPONSIVE LAYOUT (from BuildingPage)
  (copied verbatim from Template:BuildingPage/styles.css)
   ======================================================== */
   ======================================================== */
.responsive-container {
.responsive-container {
  display:flex!important;
    display: flex !important;
  flex-wrap:wrap!important;
    flex-wrap: wrap !important;
  gap:24px!important;
    gap: 24px !important;
  width:100%!important;
    width: 100% !important;
  max-width:none!important;
    max-width: none !important;
  margin:0 auto 20px auto!important;
    margin: 0 auto 20px auto !important;
  padding:0 20px!important;
    padding: 0 20px !important;
  box-sizing:border-box!important;
    box-sizing: border-box !important;
}
}


.responsive-col {
.responsive-col {
  display:flex!important;
    display: flex !important;
  flex-direction:column!important;
    flex-direction: column !important;
  flex:1 1 0!important;
    flex: 1 1 0 !important;
  min-width:0!important;
    min-width: 0 !important;
  max-width:none!important;
    max-width: none !important;
}
}


/* Desktop: 3 columns */
/* Desktop: 3 columns */
@media (min-width:1200px){
@media (min-width: 1200px) {
  .responsive-col{flex:1 1 calc(33.333% - 16px)!important}
    .responsive-col {
        flex: 1 1 calc(33.333% - 16px) !important;
    }
}
}


/* Tablet: 2 columns */
/* Tablet: 2 columns */
@media (min-width:768px) and (max-width:1199px){
@media (min-width: 768px) and (max-width: 1199px) {
  .responsive-col{flex:1 1 calc(50% - 12px)!important}
    .responsive-col {
        flex: 1 1 calc(50% - 12px) !important;
    }
}
}


/* Mobile: 1 column */
/* Mobile: 1 column */
@media (max-width:767px){
@media (max-width: 767px) {
  .responsive-col{flex:1 1 100%!important}
    .responsive-col {
        flex: 1 1 100% !important;
    }
}
}


/* -------- DUNE CARD COMPONENTS -------- */
/* ========================================================
.dune-card{
  DUNE CARD COMPONENTS
  background:linear-gradient(135deg,rgba(0,0,2,.85)0%,rgba(12,10,20,.85)100%);
  ======================================================== */
  color:#E0E0E0;
.dune-card {
  padding:0;
    background: linear-gradient(135deg, rgba(0,0,2,.85) 0%, rgba(12,10,20,.85) 100%);
  margin-bottom:20px!important;
    color: #E0E0E0;
  border:2px solid rgba(252,231,200,.2);
    padding: 0;
  position:relative;
    margin-bottom: 20px !important;
  overflow:hidden;
    border: 2px solid rgba(252, 231, 200, 0.2);
  clip-path:polygon(0 20px,20px 0,calc(100% - 20px)0,100% 20px,100% calc(100% - 20px),calc(100% - 20px)100%,20px 100%,0 calc(100% - 20px));
    position: relative;
  box-shadow:0 0 30px rgba(0,0,0,.8),inset 0 0 30px rgba(252,231,200,.05);
    overflow: hidden;
  display:flex;flex-direction:column;flex:1 0 auto;height:100%;
    clip-path: polygon(
        0 20px,
        20px 0,
        calc(100% - 20px) 0,
        100% 20px,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        20px 100%,
        0 calc(100% - 20px)
    );
    box-shadow:  
        0 0 30px rgba(0,0,0,.8),
        inset 0 0 30px rgba(252, 231, 200, 0.05);
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    height: 100%;
}
}


.dune-card-inner{padding:24px!important;position:relative;z-index:1}
.dune-card-inner {
    padding: 24px !important;
    position: relative;
    z-index: 1;
}


.dune-card-decoration{
.dune-card-decoration {
  position:absolute;top:0;right:0;width:60px;height:60px;
    position: absolute;
  background:linear-gradient(135deg,transparent 50%,rgba(252,231,200,.1)50%);
    top: 0;
  z-index:2;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(252, 231, 200, 0.1) 50%);
    z-index: 2;
}
}
.dune-card-decoration::before{
 
  content:'';position:absolute;top:10px;right:10px;width:6px;height:6px;
.dune-card-decoration::before {
  background:#fce7c8;border-radius:50%;box-shadow:0 0 10px #fce7c8;opacity:.7;
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    background: #fce7c8;
    border-radius: 50%;
    box-shadow: 0 0 10px #fce7c8;
    opacity: 0.7;
}
}


/* Card Label */
/* Card Label */
.dune-card-label{
.dune-card-label {
  color:#E3BB7A;font-size:11px;text-transform:uppercase;margin-bottom:8px;
    color: #E3BB7A;
  letter-spacing:2px;font-weight:700;display:inline-block;padding:4px 12px;
    font-size: 11px;
  background:linear-gradient(90deg,rgba(252,231,200,.1)0%,transparent 100%);
    text-transform: uppercase;
  border-left:3px solid #fce7c8;
    margin-bottom: 8px;
    letter-spacing: 2px;
    font-weight: 700;
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(90deg, rgba(227,187,122,.1) 0%, transparent 100%);
    border-left: 3px solid #E3BB7A;
}
}


/* Card Title */
/* Card Title */
.dune-card-title{
.dune-card-title {
  margin:0;font-size:24px!important;color:#fce7c8;text-transform:uppercase;
    margin: 0;
  padding-bottom:12px;margin-bottom:16px;display:flex;align-items:center;
    font-size: 24px !important;
  position:relative;font-weight:700;letter-spacing:1px;
    color: #fce7c8;
  text-shadow:0 0 20px rgba(252,231,200,.5);
    text-transform: uppercase;
    padding-bottom: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    position: relative;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(252, 231, 200, 0.5);
}
}
.dune-card-title::after{
 
  content:'';position:absolute;bottom:0;left:0;right:0;height:2px;
.dune-card-title::after {
  background:linear-gradient(90deg,transparent 0%,#fce7c8 20%,#E3BB7A 50%,#fce7c8 80%,transparent 100%);
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,  
        transparent 0%,  
        #fce7c8 20%,  
        #E3BB7A 50%,  
        #fce7c8 80%,  
        transparent 100%
    );
}
}
.dune-card-title .icon{
 
  margin-right:12px;font-size:28px;color:#fce7c8;
.dune-card-title .icon {
  filter:drop-shadow(0 0 5px rgba(252,231,200,.7));
    margin-right: 12px;
    font-size: 28px;
    color: #E3BB7A;
    filter: drop-shadow(0 0 5px rgba(227,187,122,.7));
}
}


/* Card Description */
/* Card Description */
.dune-card-description{
.dune-card-description {
  font-size:18px!important;line-height:1.5!important;background:rgba(0,0,2,.8);
    font-size: 18px !important;
  border:1px solid rgba(252,231,200,.2);padding:16px;margin-bottom:16px;
    line-height: 1.5 !important;
  position:relative;overflow:hidden;
    background: rgba(0,0,2,.8);
    border: 1px solid rgba(252, 231, 200, 0.2);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
}
.dune-card-description::before,
.dune-card-description::before,
.dune-card-description::after{
.dune-card-description::after {
  content:'';position:absolute;width:20px;height:20px;border:2px solid rgba(252,231,200,.3);
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(252, 231, 200, 0.3);
}
 
.dune-card-description::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}
 
.dune-card-description::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}
 
.dune-card-description:empty {
    display: none;
}
}
.dune-card-description::before{top:-1px;left:-1px;border-right:none;border-bottom:none}
.dune-card-description::after{bottom:-1px;right:-1px;border-left:none;border-top:none}


/* Card Image */
/* Card Image */
.dune-card-image{text-align:center;margin:16px 0;position:relative}
.dune-card-image {
.dune-card-image img{
    text-align: center;
  max-width:260px!important;max-height:260px!important;width:100%;height:auto;
    margin: 16px 0;
  object-fit:contain;filter:drop-shadow(0 0 20px rgba(252,231,200,.3));
    position: relative;
  transition:.3s ease;
}
}
.dune-card-image:hover img{
 
  transform:scale(1.05);filter:drop-shadow(0 0 30px rgba(252,231,200,.5));
.dune-card-image img {
    max-width: 260px !important;
    max-height: 260px !important;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(252, 231, 200, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}
}


/* ------ (rest of BuildingPage table & mobile rules copied unchanged) ------ */
.dune-card-image:hover img {
/* ... full table styles, recipe formatting, mobile overrides ... */
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(252, 231, 200, 0.5));
}
 
/* Border Styling */
.has-border {
    border: 3px solid transparent;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%) padding-box,
                linear-gradient(135deg, #fce7c8 0%, #E3BB7A 100%) border-box;
    padding: 8px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}
 
/* Card Video */
.dune-card-video {
    max-height: 250px;
}
 
.dune-card-video iframe,
.dune-card-video video {
    width: 100%;
    height: auto;
    max-height: 240px;
}


/* ========================================================
/* ========================================================
   SECTION 1 · RESOURCE-PAGE SPECIFICS
   TABLE STYLES
   ======================================================== */
   ======================================================== */
.dune-table-wrapper {
    border: 2px solid rgba(252, 231, 200, 0.3);
    overflow: hidden;
    width: 100%;
    position: relative;
    background: rgba(0,0,2,.6);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    margin: 12px 0;
}
table.infobox-dune-two-column,
table.infobox-dune-standard-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}
/* Table cells */
table.infobox-dune-two-column th,
table.infobox-dune-two-column td,
table.infobox-dune-standard-table th,
table.infobox-dune-standard-table td {
    padding: 12px 10px !important;
    font-size: 17px !important;
    color: #E0E0E0;
    background: rgba(12,10,20,.6);
    border-bottom: 1px solid rgba(252, 231, 200, 0.2);
    transition: background 0.2s ease, color 0.2s ease;
}


/* Resource label override */
/* Table hover effects */
.dune-card-label{
table.infobox-dune-two-column tr:hover td,
  background:linear-gradient(90deg,rgba(227,187,122,.1)0%,transparent 100%);
table.infobox-dune-standard-table tr:hover td {
  border-left:3px solid #E3BB7A;
    background: rgba(252, 231, 200, 0.05);
    color: #fff;
}
}


/* Resource icon colors */
/* Table headers */
.dune-card-title .icon{
table.infobox-dune-two-column thead th,
  color:#E3BB7A;
table.infobox-dune-standard-table thead th,
  filter:drop-shadow(0 0 5px rgba(227,187,122,.7));
.tr-dark,
tr.tr-dark td {
    background: rgba(0,0,2,.9) !important;
    color: #fce7c8 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(252, 231, 200, 0.4);
}
}


/* -------- Crafting Section -------- */
/* Remove last row border */
.crafting-section{
table.infobox-dune-two-column tr:last-child td,
  margin-bottom:24px;padding:16px;background:rgba(0,0,2,.6);
table.infobox-dune-standard-table tr:last-child td {
  border:1px solid rgba(252,231,200,.2);position:relative;
    border-bottom: none;
}
}
.dune-section-header{
 
  color:#fce7c8;font-size:18px;font-weight:700;text-transform:uppercase;
/* ========================================================
  margin:0 0 8px 0;padding-bottom:8px;border-bottom:2px solid rgba(252,231,200,.3);
  CRAFTING SECTION
  letter-spacing:1px;
  ======================================================== */
.crafting-section {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(0,0,2,.6);
    border: 1px solid rgba(252,231,200,.2);
    position: relative;
}
}


/* ... (all your crafting search / table / actions rules unchanged) ... */
.dune-section-header {
    color: #fce7c8;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(252,231,200,.3);
    letter-spacing: 1px;
}


/* -------- Recipe Popup -------- */
/* Recipe Table Preview - Limited Height with Scroll */
.recipe-popup-overlay{
.recipe-table-preview {
  position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.8);
    max-height: 320px;
  /* backdrop-filter:blur(5px);   <-- uncomment via booster if needed */
    overflow-y: auto;
  z-index:10000;display:flex;align-items:center;justify-content:center;
    overflow-x: hidden;
  opacity:0;visibility:hidden;transition:.3s ease;
    margin: 12px 0;
    position: relative;
}
}
.recipe-popup-overlay.active{opacity:1;visibility:visible}


/* ... rest of popup rules unchanged ... */
 
/* Recipe Table Styling */
.recipe-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
 
.recipe-table thead th {
    background: rgba(0,0,2,.9) !important;
    color: #fce7c8 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 10px !important;
    font-size: 14px !important;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid rgba(252,231,200,.4);
}
 
.recipe-table tbody tr {
    transition: background 0.2s ease;
}
 
.recipe-table tbody tr:hover {
    background: rgba(252,231,200,.05);
}
 
.recipe-table tbody td {
    padding: 10px !important;
    font-size: 14px !important;
    color: #E0E0E0;
    background: rgba(12,10,20,.6);
    border-bottom: 1px solid rgba(252,231,200,.2);
}
 
/* Recipe Search Container */
.recipe-search-container {
    margin: 8px 0;
}
 
.recipe-search-input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(0,0,2,.8);
    border: 2px solid rgba(252,231,200,.3);
    color: #fce7c8;
    font-size: 14px;
    font-family: 'Rajdhani', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    box-sizing: border-box;
}
 
.recipe-search-input:focus {
    border-color: #fce7c8;
    box-shadow: 0 0 10px rgba(252,231,200,.3);
}
 
.recipe-search-input::placeholder {
    color: rgba(252,231,200,.5);
}
 
/* Recipe Actions */
.recipe-actions {
    text-align: center;
    margin-top: 12px;
}
 
.dune-action-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(252,231,200,.1) 0%, rgba(227,187,122,.1) 100%);
    border: 2px solid rgba(252,231,200,.3);
    color: #fce7c8;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
 
.dune-action-button:hover {
    background: linear-gradient(135deg, rgba(252,231,200,.2) 0%, rgba(227,187,122,.2) 100%);
    border-color: #fce7c8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252,231,200,.3);
}
 
.dune-action-button .icon {
    margin-right: 8px;
}


/* ========================================================
/* ========================================================
   SECTION 2 · UTILITIES & MOBILE
   GALLERY
   ======================================================== */
   ======================================================== */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    justify-content: center;
}
.gallery-item {
    flex: 0 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}


/* Utility: hide elements on ≤768 px */
.gallery-item img {
@media(max-width:768px){.hide-mobile{display:none}}
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: cover;
    border: 2px solid rgba(252,231,200,.3);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}


/* Example use:
.gallery-item:hover img {
  <th class="hide-mobile">Mass</th>
    border-color: #fce7c8;
  <td class="hide-mobile">350 m³</td>
    transform: scale(1.1);
*/
    box-shadow: 0 0 20px rgba(252,231,200,.6);
}


/* Existing mobile tweaks from BuildingPage & Resource rules remain intact */
.gallery-item .caption {
    font-size: 12px;
    color: #E3BB7A;
    margin-top: 6px;
    padding: 0 4px;
    line-height: 1.2;
}


/* ========================================================
/* ========================================================
   SECTION 3 · MISC
   MOBILE RESPONSIVE
   ======================================================== */
   ======================================================== */
 
@media (max-width: 768px) {
.dune-card-description:empty{display:none}
    /* Container adjustments */
    .responsive-container {
        padding: 0 10px !important;
        gap: 16px !important;
    }
   
    /* Card adjustments */
    .dune-card {
        clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
    }
   
    .dune-card-inner {
        padding: 16px !important;
    }
   
    .dune-card-title {
        font-size: 20px !important;
    }
   
    .dune-card-description {
        font-size: 14px !important;
        padding: 12px;
    }
   
    .dune-card-image img {
        max-width: 180px !important;
        max-height: 180px !important;
    }
   
    /* Table adjustments */
    table.infobox-dune-two-column th,
    table.infobox-dune-two-column td,
    table.infobox-dune-standard-table th,
    table.infobox-dune-standard-table td {
        padding: 10px 6px !important;
        font-size: 14px !important;
    }
   
    /* Recipe table mobile */
    .recipe-table-preview {
        max-height: 240px;
    }
   
    /* Gallery mobile */
    .gallery-container {
        gap: 8px;
    }
   
    .gallery-item {
        flex: 0 0 80px;
    }
   
    .gallery-item img {
        max-height: 80px;
    }
}

Revision as of 12:52, 3 June 2025

/**********************************************************
 *  Template:ResourcePage/styles.css  (TemplateStyles version)
 *  Dune Awakening — Resource Page
 *  v1.2 · 2025-05-27 
 *  
 *  This version is compliant with MediaWiki TemplateStyles restrictions
 **********************************************************/

/* ========================================================
   RESPONSIVE LAYOUT (from BuildingPage)
   ======================================================== */
.responsive-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto 20px auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.responsive-col {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* Desktop: 3 columns */
@media (min-width: 1200px) {
    .responsive-col {
        flex: 1 1 calc(33.333% - 16px) !important;
    }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .responsive-col {
        flex: 1 1 calc(50% - 12px) !important;
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .responsive-col {
        flex: 1 1 100% !important;
    }
}

/* ========================================================
   DUNE CARD COMPONENTS
   ======================================================== */
.dune-card {
    background: linear-gradient(135deg, rgba(0,0,2,.85) 0%, rgba(12,10,20,.85) 100%);
    color: #E0E0E0;
    padding: 0;
    margin-bottom: 20px !important;
    border: 2px solid rgba(252, 231, 200, 0.2);
    position: relative;
    overflow: hidden;
    clip-path: polygon(
        0 20px,
        20px 0,
        calc(100% - 20px) 0,
        100% 20px,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        20px 100%,
        0 calc(100% - 20px)
    );
    box-shadow: 
        0 0 30px rgba(0,0,0,.8),
        inset 0 0 30px rgba(252, 231, 200, 0.05);
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    height: 100%;
}

.dune-card-inner {
    padding: 24px !important;
    position: relative;
    z-index: 1;
}

.dune-card-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(252, 231, 200, 0.1) 50%);
    z-index: 2;
}

.dune-card-decoration::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    background: #fce7c8;
    border-radius: 50%;
    box-shadow: 0 0 10px #fce7c8;
    opacity: 0.7;
}

/* Card Label */
.dune-card-label {
    color: #E3BB7A;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 2px;
    font-weight: 700;
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(90deg, rgba(227,187,122,.1) 0%, transparent 100%);
    border-left: 3px solid #E3BB7A;
}

/* Card Title */
.dune-card-title {
    margin: 0;
    font-size: 24px !important;
    color: #fce7c8;
    text-transform: uppercase;
    padding-bottom: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    position: relative;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(252, 231, 200, 0.5);
}

.dune-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #fce7c8 20%, 
        #E3BB7A 50%, 
        #fce7c8 80%, 
        transparent 100%
    );
}

.dune-card-title .icon {
    margin-right: 12px;
    font-size: 28px;
    color: #E3BB7A;
    filter: drop-shadow(0 0 5px rgba(227,187,122,.7));
}

/* Card Description */
.dune-card-description {
    font-size: 18px !important;
    line-height: 1.5 !important;
    background: rgba(0,0,2,.8);
    border: 1px solid rgba(252, 231, 200, 0.2);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.dune-card-description::before,
.dune-card-description::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(252, 231, 200, 0.3);
}

.dune-card-description::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.dune-card-description::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.dune-card-description:empty {
    display: none;
}

/* Card Image */
.dune-card-image {
    text-align: center;
    margin: 16px 0;
    position: relative;
}

.dune-card-image img {
    max-width: 260px !important;
    max-height: 260px !important;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(252, 231, 200, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.dune-card-image:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(252, 231, 200, 0.5));
}

/* Border Styling */
.has-border {
    border: 3px solid transparent;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%) padding-box,
                linear-gradient(135deg, #fce7c8 0%, #E3BB7A 100%) border-box;
    padding: 8px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* Card Video */
.dune-card-video {
    max-height: 250px;
}

.dune-card-video iframe,
.dune-card-video video {
    width: 100%;
    height: auto;
    max-height: 240px;
}

/* ========================================================
   TABLE STYLES
   ======================================================== */
.dune-table-wrapper {
    border: 2px solid rgba(252, 231, 200, 0.3);
    overflow: hidden;
    width: 100%;
    position: relative;
    background: rgba(0,0,2,.6);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    margin: 12px 0;
}

table.infobox-dune-two-column,
table.infobox-dune-standard-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

/* Table cells */
table.infobox-dune-two-column th,
table.infobox-dune-two-column td,
table.infobox-dune-standard-table th,
table.infobox-dune-standard-table td {
    padding: 12px 10px !important;
    font-size: 17px !important;
    color: #E0E0E0;
    background: rgba(12,10,20,.6);
    border-bottom: 1px solid rgba(252, 231, 200, 0.2);
    transition: background 0.2s ease, color 0.2s ease;
}

/* Table hover effects */
table.infobox-dune-two-column tr:hover td,
table.infobox-dune-standard-table tr:hover td {
    background: rgba(252, 231, 200, 0.05);
    color: #fff;
}

/* Table headers */
table.infobox-dune-two-column thead th,
table.infobox-dune-standard-table thead th,
.tr-dark,
tr.tr-dark td {
    background: rgba(0,0,2,.9) !important;
    color: #fce7c8 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(252, 231, 200, 0.4);
}

/* Remove last row border */
table.infobox-dune-two-column tr:last-child td,
table.infobox-dune-standard-table tr:last-child td {
    border-bottom: none;
}

/* ========================================================
   CRAFTING SECTION
   ======================================================== */
.crafting-section {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(0,0,2,.6);
    border: 1px solid rgba(252,231,200,.2);
    position: relative;
}

.dune-section-header {
    color: #fce7c8;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(252,231,200,.3);
    letter-spacing: 1px;
}

/* Recipe Table Preview - Limited Height with Scroll */
.recipe-table-preview {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 12px 0;
    position: relative;
}


/* Recipe Table Styling */
.recipe-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.recipe-table thead th {
    background: rgba(0,0,2,.9) !important;
    color: #fce7c8 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 10px !important;
    font-size: 14px !important;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid rgba(252,231,200,.4);
}

.recipe-table tbody tr {
    transition: background 0.2s ease;
}

.recipe-table tbody tr:hover {
    background: rgba(252,231,200,.05);
}

.recipe-table tbody td {
    padding: 10px !important;
    font-size: 14px !important;
    color: #E0E0E0;
    background: rgba(12,10,20,.6);
    border-bottom: 1px solid rgba(252,231,200,.2);
}

/* Recipe Search Container */
.recipe-search-container {
    margin: 8px 0;
}

.recipe-search-input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(0,0,2,.8);
    border: 2px solid rgba(252,231,200,.3);
    color: #fce7c8;
    font-size: 14px;
    font-family: 'Rajdhani', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.recipe-search-input:focus {
    border-color: #fce7c8;
    box-shadow: 0 0 10px rgba(252,231,200,.3);
}

.recipe-search-input::placeholder {
    color: rgba(252,231,200,.5);
}

/* Recipe Actions */
.recipe-actions {
    text-align: center;
    margin-top: 12px;
}

.dune-action-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(252,231,200,.1) 0%, rgba(227,187,122,.1) 100%);
    border: 2px solid rgba(252,231,200,.3);
    color: #fce7c8;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.dune-action-button:hover {
    background: linear-gradient(135deg, rgba(252,231,200,.2) 0%, rgba(227,187,122,.2) 100%);
    border-color: #fce7c8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252,231,200,.3);
}

.dune-action-button .icon {
    margin-right: 8px;
}

/* ========================================================
   GALLERY
   ======================================================== */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    justify-content: center;
}

.gallery-item {
    flex: 0 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: cover;
    border: 2px solid rgba(252,231,200,.3);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    border-color: #fce7c8;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(252,231,200,.6);
}

.gallery-item .caption {
    font-size: 12px;
    color: #E3BB7A;
    margin-top: 6px;
    padding: 0 4px;
    line-height: 1.2;
}

/* ========================================================
   MOBILE RESPONSIVE
   ======================================================== */
@media (max-width: 768px) {
    /* Container adjustments */
    .responsive-container {
        padding: 0 10px !important;
        gap: 16px !important;
    }
    
    /* Card adjustments */
    .dune-card {
        clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
    }
    
    .dune-card-inner {
        padding: 16px !important;
    }
    
    .dune-card-title {
        font-size: 20px !important;
    }
    
    .dune-card-description {
        font-size: 14px !important;
        padding: 12px;
    }
    
    .dune-card-image img {
        max-width: 180px !important;
        max-height: 180px !important;
    }
    
    /* Table adjustments */
    table.infobox-dune-two-column th,
    table.infobox-dune-two-column td,
    table.infobox-dune-standard-table th,
    table.infobox-dune-standard-table td {
        padding: 10px 6px !important;
        font-size: 14px !important;
    }
    
    /* Recipe table mobile */
    .recipe-table-preview {
        max-height: 240px;
    }
    
    /* Gallery mobile */
    .gallery-container {
        gap: 8px;
    }
    
    .gallery-item {
        flex: 0 0 80px;
    }
    
    .gallery-item img {
        max-height: 80px;
    }
}