/**********************************************************
* 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;
}
}
/* ResourcePage Template Fixes - Add to ResourcePage_TemplateStyles.css */
/* ========================================================
FIX 1: REDUCE TABLE ROW SIZE TO FIT VIEWPORT
======================================================== */
/* Reduce recipe table preview height for better viewport fit */
.recipe-table-preview {
max-height: 240px !important; /* Reduced from 320px */
overflow-y: auto;
overflow-x: hidden;
margin: 8px 0 !important;
position: relative;
}
/* Smaller table cells and text */
.recipe-table tbody td {
padding: 6px 8px !important; /* Reduced from 10px */
font-size: 13px !important; /* Reduced from 14px */
line-height: 1.3 !important;
}
.recipe-table thead th {
padding: 8px 6px !important; /* Reduced from 12px 10px */
font-size: 13px !important; /* Reduced from 14px */
}
/* Tighter recipe rows */
.recipe-row {
height: auto !important;
}
/* Reduce crafting section padding */
.crafting-section {
margin-bottom: 16px !important; /* Reduced from 24px */
padding: 12px !important; /* Reduced from 16px */
}
/* ========================================================
FIX 2: VIDEO CONTAINER SIZING
======================================================== */
/* Make video container responsive */
.dune-card-video {
position: relative;
width: 100%;
padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
height: 0;
overflow: hidden;
background-color: #262626;
border: 2px solid #e2d3ae;
border-radius: 4px;
}
/* Position iframe absolutely within container */
.dune-card-video iframe,
.dune-card-video .embedvideo-wrapper {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
}
/* Fix YouTube embed wrapper */
.embedvideo {
width: 100% !important;
}
.embedvideo-wrapper {
position: relative !important;
width: 100% !important;
height: 100% !important;
}
/* ========================================================
FIX 3: GOLD COLOR FOR ICONS
======================================================== */
/* Apply gold color to all icons in resource info card */
.dune-card-inner .icon,
table.infobox-dune-two-column th .icon {
color: #E3BB7A !important;
filter: drop-shadow(0 0 3px rgba(227,187,122,.5));
}
/* Specific icon styling */
.dune-card-inner .icon::before {
color: #E3BB7A !important;
}
/* Icon hover effect */
.dune-card-inner tr:hover .icon {
color: #fce7c8 !important;
filter: drop-shadow(0 0 5px rgba(252,231,200,.7));
}
/* ========================================================
FIX 4: CLICKABLE SPAN BUTTONS
======================================================== */
/* Style spans to look and act like buttons */
.dune-action-button {
display: inline-block !important;
padding: 8px 16px !important;
background: linear-gradient(135deg, rgba(252,231,200,.1) 0%, rgba(227,187,122,.1) 100%) !important;
border: 2px solid rgba(252,231,200,.3) !important;
color: #fce7c8 !important;
font-size: 13px !important;
font-weight: 600 !important;
text-transform: uppercase !important;
letter-spacing: 1px !important;
cursor: pointer !important;
transition: all 0.3s ease !important;
text-decoration: none !important;
position: relative !important;
overflow: hidden !important;
user-select: none !important;
-webkit-user-select: none !important;
-moz-user-select: none !important;
}
/* Hover state for span buttons */
.dune-action-button:hover {
background: linear-gradient(135deg, rgba(252,231,200,.2) 0%, rgba(227,187,122,.2) 100%) !important;
border-color: #fce7c8 !important;
transform: translateY(-2px) !important;
box-shadow: 0 4px 12px rgba(252,231,200,.3) !important;
color: #fff !important;
text-decoration: none !important;
}
/* Active/click state */
.dune-action-button:active {
transform: translateY(0) !important;
box-shadow: 0 2px 6px rgba(252,231,200,.2) !important;
}
/* ========================================================
ADDITIONAL VIEWPORT OPTIMIZATIONS
======================================================== */
/* Reduce card padding on smaller screens */
@media (max-width: 1400px) {
.dune-card-inner {
padding: 16px !important;
}
.dune-card-title {
font-size: 20px !important;
}
.dune-card-description {
font-size: 14px !important;
padding: 12px !important;
}
}
/* Optimize column layout for better viewport usage */
@media (min-width: 1200px) and (max-width: 1600px) {
.responsive-container {
gap: 16px !important;
}
.recipe-table-preview {
max-height: 200px !important;
}
}
/* ========================================================
POPUP STYLES
======================================================== */
/* Ensure popup overlay works */
.recipe-popup-overlay {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
background: rgba(0,0,0,.85) !important;
z-index: 100000 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
opacity: 0;
visibility: hidden;
transition: opacity .3s ease, visibility .3s ease !important;
}
.recipe-popup-overlay.active {
opacity: 1 !important;
visibility: visible !important;
}
/* Popup close button styling */
.popup-close {
background: transparent !important;
border: none !important;
color: #fce7c8 !important;
font-size: 28px !important;
cursor: pointer !important;
transition: transform 0.3s ease, color 0.3s ease !important;
padding: 0 !important;
width: 40px !important;
height: 40px !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
line-height: 1 !important;
}
.popup-close:hover {
color: #fff !important;
transform: rotate(90deg) !important;
}