MediaWiki:Common.css: Difference between revisions

From Ragnafied Wiki
No edit summary
No edit summary
Line 1: Line 1:
/* Ragnawiki Modern Styling */
/* --- GLOBAL CONTAINER & COLORS --- */
.ragnawiki-modern {
.ragnawiki-modern {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
  line-height: 1.4;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.5;
}
}


/* Hero Section */
/* Color Utilities */
.text-primary { color: #3498db !important; font-weight: 700; } /* Blue */
.text-success { color: #2ecc71 !important; font-weight: 700; } /* Green */
.text-danger { color: #e74c3c !important; font-weight: 700; } /* Red */
.text-warning { color: #f39c12 !important; font-weight: 700; } /* Orange */
.text-purple { color: #9b59b6 !important; font-weight: 700; } /* Purple */
.text-muted { color: #7f8c8d !important; font-weight: 700; } /* Gray/Muted */
 
/* --- HERO SECTION --- */
.wiki-hero {
.wiki-hero {
  background: linear-gradient(135deg, #f0c237 0%, #b88d0b 100%);
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); /* Dark Blue Gradient */
  color: white;
    color: white;
  padding: 25px;
    text-align: center;
  border-radius: 10px;
    padding: 30px 20px;
  text-align: center;
    margin-bottom: 30px;
  margin-bottom: 25px;
    border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
}
.wiki-hero-title {
.wiki-hero-title {
  font-size: 28px;
    font-size: 2.8em;
  font-weight: bold;
    font-weight: 900;
  margin-bottom: 10px;
    text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    letter-spacing: 3px;
    margin-bottom: 5px;
}
}
.wiki-hero-subtitle {
.wiki-hero-subtitle {
  font-size: 16px;
    font-size: 1.3em;
  opacity: 0.9;
    font-style: italic;
  margin-bottom: 15px;
    opacity: 0.85;
}
    margin-bottom: 20px;
 
/* Grid Layouts */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}
}
 
.hero-image img {
.nav-grid {
    border-radius: 50%;
  display: grid;
    border: 6px solid #2ecc71; /* Green Accent Border */
  grid-template-columns: repeat(3, 1fr);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
  gap: 15px;
    transition: transform 0.3s ease;
  margin-bottom: 20px;
}
}
 
.hero-image img:hover {
/* Cards */
    transform: scale(1.05);
.info-card, .nav-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
}


.info-card:hover, .nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}


/* Card Headers */
/* --- INFO & NAVIGATION GRIDS --- */
.card-header, .nav-header {
.info-grid, .nav-grid {
  color: white;
    display: flex;
  padding: 12px 15px;
    gap: 20px;
  font-weight: bold;
    margin-bottom: 30px;
  font-size: 16px;
    align-items: stretch; /* Ensure cards in a row are the same height */
  text-align: center;
}
}


.card-header.server {
/* Info Cards */
  background: linear-gradient(135deg, #4682B4, #5a96d1);
.info-card {
    flex: 1; /* Both cards take up equal space */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background-color: white;
    display: flex;
    flex-direction: column;
}
}
 
.card-header {
.card-header.rates {
    font-size: 1.3em;
  background: linear-gradient(135deg, #DAA520, #e6b800);
    font-weight: 700;
    color: white;
    padding: 12px 15px;
    text-align: left;
}
}
.server-card .card-header { background-color: #3498db; }
.rates-card .card-header { background-color: #e67e22; }


.nav-header.beginners {
.card-content {
  background: linear-gradient(135deg, #87CEFA, #6ab0f5);
    padding: 15px;
}
    flex-grow: 1; /* Allows content to push footer/notes down */
 
.nav-header.features {
  background: linear-gradient(135deg, #DAA520, #e6b800);
}
}


.nav-header.guides {
/* Compact List Style */
  background: linear-gradient(135deg, #32CD32, #28a428);
.compact-list {
}
    display: grid;
 
    /* Two columns for dense display on large screens */
/* Card Content */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
.card-content {
    gap: 5px 15px;
  padding: 15px;
    margin-bottom: 15px;
}
}
 
.list-row {
/* Lists */
    display: flex;
.compact-list .list-row {
    justify-content: space-between;
  display: flex;
    align-items: center;
  align-items: center;
    padding: 5px 0;
  padding: 8px 0;
    border-bottom: 1px dashed #ecf0f1;
  border-bottom: 1px solid #f0f0f0;
}
}
 
.list-row:last-child {
.compact-list .list-row:last-child {
    border-bottom: none;
  border-bottom: none;
}
}
.list-icon {
.list-icon {
  width: 30px;
    font-size: 1.1em;
  text-align: center;
    margin-right: 8px;
  font-size: 16px;
}
 
/* Navigation Items */
.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}
 
.nav-item:hover {
  background-color: #f8f9fa;
}
 
.nav-item:last-child {
  border-bottom: none;
}
 
.nav-icon {
  width: 30px;
  text-align: center;
}
 
.nav-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
}
 
.list-label {
.nav-text {
    flex-grow: 1;
  flex: 1;
    white-space: nowrap;
  font-weight: 600;
    overflow: hidden;
  color: #2c5e9e;
    text-overflow: ellipsis;
}
}
 
.list-value {
.nav-item:hover .nav-text {
    text-align: right;
  color: #1e3a5f;
    margin-left: 10px;
}
}


/* Notes Box */
/* Notes Box Style */
.notes-box {
.notes-box {
  margin-top: 15px;
    border: 2px solid #f39c12;
  background: rgba(255, 243, 243, 0.8);
    border-radius: 6px;
  border-left: 4px solid #b22222;
    background-color: #fffaf0;
  padding: 12px;
    margin-top: 15px;
  border-radius: 6px;
    overflow: hidden;
}
}
.notes-title {
.notes-title {
  font-weight: 600;
    font-weight: 700;
  color: #b22222;
    background-color: #f39c12;
  margin-bottom: 5px;
    color: white;
  font-size: 14px;
    padding: 8px 10px;
    font-size: 1em;
}
}
.notes-content {
.notes-content {
  font-size: 12px;
    padding: 10px;
  line-height: 1.4;
    font-size: 0.95em;
  color: #666;
}
 
/* Section Titles */
.section-title {
  font-size: 20px;
  font-weight: bold;
  margin: 25px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2c5e9e;
}
}
 
.notes-content ul {
/* Color Classes for Text */
     list-style: disc;
.text-primary { color: #2c5e9e; font-weight: 600; }
     margin: 0;
.text-danger { color: #d35400; font-weight: 600; }
     padding-left: 20px;
.text-success { color: #27ae60; font-weight: 600; }
.text-purple { color: #8e44ad; font-weight: 600; }
.text-warning { color: #e67e22; font-weight: 600; }
 
/* Responsive Design */
@media (max-width: 768px) {
  .info-grid {
     grid-template-columns: 1fr;
     gap: 15px;
  }
 
  .nav-grid {
     grid-template-columns: 1fr;
    gap: 15px;
  }
 
  .wiki-hero {
    padding: 20px 15px;
  }
 
  .wiki-hero-title {
    font-size: 24px;
  }
}
}


@media (max-width: 480px) {
  .card-content {
    padding: 12px;
  }
 
  .nav-item {
    padding: 8px 10px;
  }
 
  .list-icon, .nav-icon {
    width: 25px;
  }
}


/* NewWikiPreset - Modern Compact Wiki Design */
/* --- QUICK NAVIGATION --- */
.NewWikiPreset {
.section-title {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.8em;
  line-height: 1.4;
    font-weight: 700;
  color: #333;
    color: #2c3e50;
    padding: 10px 0;
    margin: 20px 0 15px 0;
    border-bottom: 3px solid #3498db;
}
}


/* Hero Section */
.nav-card {
.NewWikiPreset-hero {
    flex: 1; /* Three equal columns */
  background: linear-gradient(135deg, #2c5e9e 0%, #1e3a5f 100%);
    border: 1px solid #e0e0e0;
  color: white;
    border-radius: 8px;
  padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
    overflow: hidden;
  text-align: center;
    background-color: white;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
}
 
.nav-header {
.NewWikiPreset-hero-title {
    font-size: 1.2em;
  font-size: 24px;
    font-weight: 700;
  font-weight: bold;
    color: white;
  margin-bottom: 8px;
    padding: 10px 12px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    text-align: center;
}
}
.beginners-nav .nav-header { background-color: #2ecc71; } /* Green */
.features-nav .nav-header { background-color: #e74c3c; } /* Red */
.guides-nav .nav-header { background-color: #9b59b6; } /* Purple */


.NewWikiPreset-hero-subtitle {
.nav-content {
  font-size: 14px;
    padding: 10px 15px;
  opacity: 0.9;
  margin-bottom: 10px;
}
}


/* Grid Layouts */
.nav-item {
.NewWikiPreset-info-grid {
    display: flex;
  display: grid;
    align-items: center;
  grid-template-columns: 1fr 1fr;
    padding: 8px 0;
  gap: 15px;
    border-bottom: 1px dashed #f0f0f0;
  margin-bottom: 20px;
}
}
 
.nav-item:last-child {
.NewWikiPreset-nav-grid {
    border-bottom: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}
}
 
.nav-icon {
/* Cards */
    width: 30px;
.NewWikiPreset-card, .NewWikiPreset-nav-card {
    height: 24px;
  background: white;
    display: flex;
  border-radius: 8px;
    align-items: center;
  overflow: hidden;
    justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-right: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
}
 
.nav-icon img {
.NewWikiPreset-card:hover, .NewWikiPreset-nav-card:hover {
    border-radius: 3px;
  transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
}
 
.nav-text {
/* Card Headers */
    flex-grow: 1;
.NewWikiPreset-card-header, .NewWikiPreset-nav-header {
    font-weight: 500;
  color: white;
  padding: 10px 12px;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
}
}
 
.nav-text a {
.NewWikiPreset-card-header.server {
    text-decoration: none;
  background: linear-gradient(135deg, #4682B4, #5a96d1);
    color: #34495e;
}
    transition: color 0.2s;
 
.NewWikiPreset-card-header.rates {
  background: linear-gradient(135deg, #DAA520, #e6b800);
}
}
 
.nav-text a:hover {
.NewWikiPreset-nav-header.beginners {
    color: #3498db;
  background: linear-gradient(135deg, #87CEFA, #6ab0f5);
    text-decoration: underline;
}
}
 
.nav-addon { /* For the TDB tag */
.NewWikiPreset-nav-header.features {
    font-size: 0.8em;
  background: linear-gradient(135deg, #DAA520, #e6b800);
    color: #e74c3c;
    font-weight: 700;
    margin-left: 8px;
    padding: 2px 5px;
    border: 1px solid #e74c3c;
    border-radius: 3px;
}
}


.NewWikiPreset-nav-header.guides {
/* --- RESPONSIVE DESIGN (FOR PHONES/SMALL TABLETS) --- */
  background: linear-gradient(135deg, #32CD32, #28a428);
@media screen and (max-width: 768px) {
    .ragnawiki-modern {
        margin: 10px;
    }
    .info-grid, .nav-grid {
        flex-direction: column; /* Stack cards vertically */
        gap: 15px;
    }
    .info-card, .nav-card {
        flex: none; /* Disable flex growth */
        width: 100%;
    }
    .wiki-hero-title {
        font-size: 2em;
    }
    .compact-list {
        /* Single column for narrow screens */
        grid-template-columns: 1fr;
    }
}
}


/* Card Content */
/* --- ICON STYLING FOR EXTERNAL IMAGES (Add to Common.css) --- */
.NewWikiPreset-card-content {
  padding: 12px;
}


/* Lists */
/* Base style for all icon spans that will hold an external image */
.NewWikiPreset-compact-list .NewWikiPreset-list-row {
.nav-icon {
  display: flex;
    /* Keep the dimensions consistent for all icons */
  align-items: center;
    width: 24px;
  padding: 6px 0;
    height: 24px;
  border-bottom: 1px solid #f0f0f0;
    background-size: contain; /* Ensure the image fits within the 24x24 box */
    background-repeat: no-repeat;
    background-position: center center;
   
    /* Ensure internal file images are also styled correctly */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}
}


.NewWikiPreset-compact-list .NewWikiPreset-list-row:last-child {
/* Specific background-image definitions for each external icon */
  border-bottom: none;
.icon-external-ragna {
    background-image: url('https://ragnafied.net/themes/simple/img/logo.png');
}
}
 
.icon-external-greed {
.NewWikiPreset-list-icon {
    background-image: url('https://irowiki.org/w/images/0/04/Greed.png');
  width: 24px;
  text-align: center;
  font-size: 14px;
}
}
 
.icon-external-longing {
/* Navigation Items */
    background-image: url('https://irowiki.org/w/images/e/e5/Longing_for_Freedom.png');
.NewWikiPreset-nav-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}
}
 
.icon-external-vip {
.NewWikiPreset-nav-item:hover {
    background-image: url('https://irowiki.org/w/images/0/0b/I_MystAmp.png');
  background-color: #f8f9fa;
}
}
 
.icon-external-smith {
.NewWikiPreset-nav-item:last-child {
    background-image: url('https://irowiki.org/w/images/2/20/Smith_Axe.png');
  border-bottom: none;
}
}
 
.icon-external-4thjob {
.NewWikiPreset-nav-icon {
    background-image: url('https://static.divine-pride.net/images/skill/5201.png');
  width: 24px;
  text-align: center;
}
}
 
.icon-external-exceed {
.NewWikiPreset-nav-icon img {
    background-image: url('https://irowiki.org/w/images/a/ae/I_Exceed_Break.png');
  width: 20px;
  height: 20px;
  object-fit: contain;
}
}
 
.icon-external-guard {
.NewWikiPreset-nav-text {
    background-image: url('https://irowiki.org/w/images/f/f3/I_Guard.png');
  flex: 1;
  font-weight: 600;
  color: #2c5e9e;
  font-size: 13px;
}
}
 
.icon-external-trouble {
.NewWikiPreset-nav-item:hover .NewWikiPreset-nav-text {
    background-image: url('https://muhro.eu/flux/data/items/icons/100381.png');
  color: #1e3a5f;
  text-decoration: underline;
}
}
 
.icon-external-illusion {
/* Notes Box */
    background-image: url('https://static.divine-pride.net/images/items/item/25723.png');
.NewWikiPreset-notes-box {
  margin-top: 12px;
  background: rgba(255, 243, 243, 0.8);
  border-left: 3px solid #b22222;
  padding: 10px;
  border-radius: 5px;
}
}
 
.icon-external-sage {
.NewWikiPreset-notes-title {
    background-image: url('https://irowiki.org/images/db/item/1000103.png');
  font-weight: 600;
  color: #b22222;
  margin-bottom: 4px;
  font-size: 13px;
}
}
 
.icon-external-prayer {
.NewWikiPreset-notes-content {
    background-image: url('https://irowiki.org/images/db/item/1000405.png');
  font-size: 11px;
  line-height: 1.3;
  color: #666;
}
}
 
.icon-external-issgard {
/* Section Titles */
    background-image: url('https://irowiki.org/images/db/item/1000608.png');
.NewWikiPreset-section-title {
  font-size: 18px;
  font-weight: bold;
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #2c5e9e;
}
}
 
.icon-external-immortal {
/* Color Classes for Text */
    background-image: url('https://muhro.eu/flux/data/items/icons/1001217.png');
.NewWikiPreset-text-primary { color: #2c5e9e; font-weight: 600; }
.NewWikiPreset-text-danger { color: #d35400; font-weight: 600; }
.NewWikiPreset-text-success { color: #27ae60; font-weight: 600; }
.NewWikiPreset-text-purple { color: #8e44ad; font-weight: 600; }
.NewWikiPreset-text-warning { color: #e67e22; font-weight: 600; }
 
/* Responsive Design */
@media (max-width: 768px) {
  .NewWikiPreset-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
 
  .NewWikiPreset-nav-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
 
  .NewWikiPreset-hero {
    padding: 15px 12px;
  }
 
  .NewWikiPreset-hero-title {
    font-size: 20px;
  }
}
}


@media (max-width: 480px) {
/* Adjustments for images that are still wikitext (File:) */
  .NewWikiPreset-card-content {
.nav-icon File { /* Targeting the image element itself */    width: 24px;   height: 24px;   /* Other styling if needed */}
    padding: 10px;
  }
 
  .NewWikiPreset-nav-item {
    padding: 6px 8px;
  }
 
  .NewWikiPreset-list-icon, .NewWikiPreset-nav-icon {
    width: 20px;
  }
}

Revision as of 20:47, 30 September 2025

/* --- GLOBAL CONTAINER & COLORS --- */
.ragnawiki-modern {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.5;
}

/* Color Utilities */
.text-primary { color: #3498db !important; font-weight: 700; } /* Blue */
.text-success { color: #2ecc71 !important; font-weight: 700; } /* Green */
.text-danger { color: #e74c3c !important; font-weight: 700; } /* Red */
.text-warning { color: #f39c12 !important; font-weight: 700; } /* Orange */
.text-purple { color: #9b59b6 !important; font-weight: 700; } /* Purple */
.text-muted { color: #7f8c8d !important; font-weight: 700; } /* Gray/Muted */

/* --- HERO SECTION --- */
.wiki-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); /* Dark Blue Gradient */
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.wiki-hero-title {
    font-size: 2.8em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
}
.wiki-hero-subtitle {
    font-size: 1.3em;
    font-style: italic;
    opacity: 0.85;
    margin-bottom: 20px;
}
.hero-image img {
    border-radius: 50%;
    border: 6px solid #2ecc71; /* Green Accent Border */
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
    transition: transform 0.3s ease;
}
.hero-image img:hover {
    transform: scale(1.05);
}


/* --- INFO & NAVIGATION GRIDS --- */
.info-grid, .nav-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: stretch; /* Ensure cards in a row are the same height */
}

/* Info Cards */
.info-card {
    flex: 1; /* Both cards take up equal space */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background-color: white;
    display: flex;
    flex-direction: column;
}
.card-header {
    font-size: 1.3em;
    font-weight: 700;
    color: white;
    padding: 12px 15px;
    text-align: left;
}
.server-card .card-header { background-color: #3498db; }
.rates-card .card-header { background-color: #e67e22; }

.card-content {
    padding: 15px;
    flex-grow: 1; /* Allows content to push footer/notes down */
}

/* Compact List Style */
.compact-list {
    display: grid;
    /* Two columns for dense display on large screens */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 5px 15px;
    margin-bottom: 15px;
}
.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed #ecf0f1;
}
.list-row:last-child {
    border-bottom: none;
}
.list-icon {
    font-size: 1.1em;
    margin-right: 8px;
}
.list-label {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.list-value {
    text-align: right;
    margin-left: 10px;
}

/* Notes Box Style */
.notes-box {
    border: 2px solid #f39c12;
    border-radius: 6px;
    background-color: #fffaf0;
    margin-top: 15px;
    overflow: hidden;
}
.notes-title {
    font-weight: 700;
    background-color: #f39c12;
    color: white;
    padding: 8px 10px;
    font-size: 1em;
}
.notes-content {
    padding: 10px;
    font-size: 0.95em;
}
.notes-content ul {
    list-style: disc;
    margin: 0;
    padding-left: 20px;
}


/* --- QUICK NAVIGATION --- */
.section-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
    padding: 10px 0;
    margin: 20px 0 15px 0;
    border-bottom: 3px solid #3498db;
}

.nav-card {
    flex: 1; /* Three equal columns */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background-color: white;
}
.nav-header {
    font-size: 1.2em;
    font-weight: 700;
    color: white;
    padding: 10px 12px;
    text-align: center;
}
.beginners-nav .nav-header { background-color: #2ecc71; } /* Green */
.features-nav .nav-header { background-color: #e74c3c; } /* Red */
.guides-nav .nav-header { background-color: #9b59b6; } /* Purple */

.nav-content {
    padding: 10px 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.nav-item:last-child {
    border-bottom: none;
}
.nav-icon {
    width: 30px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}
.nav-icon img {
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.nav-text {
    flex-grow: 1;
    font-weight: 500;
}
.nav-text a {
    text-decoration: none;
    color: #34495e;
    transition: color 0.2s;
}
.nav-text a:hover {
    color: #3498db;
    text-decoration: underline;
}
.nav-addon { /* For the TDB tag */
    font-size: 0.8em;
    color: #e74c3c;
    font-weight: 700;
    margin-left: 8px;
    padding: 2px 5px;
    border: 1px solid #e74c3c;
    border-radius: 3px;
}

/* --- RESPONSIVE DESIGN (FOR PHONES/SMALL TABLETS) --- */
@media screen and (max-width: 768px) {
    .ragnawiki-modern {
        margin: 10px;
    }
    .info-grid, .nav-grid {
        flex-direction: column; /* Stack cards vertically */
        gap: 15px;
    }
    .info-card, .nav-card {
        flex: none; /* Disable flex growth */
        width: 100%;
    }
    .wiki-hero-title {
        font-size: 2em;
    }
    .compact-list {
        /* Single column for narrow screens */
        grid-template-columns: 1fr;
    }
}

/* --- ICON STYLING FOR EXTERNAL IMAGES (Add to Common.css) --- */

/* Base style for all icon spans that will hold an external image */
.nav-icon {
    /* Keep the dimensions consistent for all icons */
    width: 24px;
    height: 24px;
    background-size: contain; /* Ensure the image fits within the 24x24 box */
    background-repeat: no-repeat;
    background-position: center center;
    
    /* Ensure internal file images are also styled correctly */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* Specific background-image definitions for each external icon */
.icon-external-ragna {
    background-image: url('https://ragnafied.net/themes/simple/img/logo.png');
}
.icon-external-greed {
    background-image: url('https://irowiki.org/w/images/0/04/Greed.png');
}
.icon-external-longing {
    background-image: url('https://irowiki.org/w/images/e/e5/Longing_for_Freedom.png');
}
.icon-external-vip {
    background-image: url('https://irowiki.org/w/images/0/0b/I_MystAmp.png');
}
.icon-external-smith {
    background-image: url('https://irowiki.org/w/images/2/20/Smith_Axe.png');
}
.icon-external-4thjob {
    background-image: url('https://static.divine-pride.net/images/skill/5201.png');
}
.icon-external-exceed {
    background-image: url('https://irowiki.org/w/images/a/ae/I_Exceed_Break.png');
}
.icon-external-guard {
    background-image: url('https://irowiki.org/w/images/f/f3/I_Guard.png');
}
.icon-external-trouble {
    background-image: url('https://muhro.eu/flux/data/items/icons/100381.png');
}
.icon-external-illusion {
    background-image: url('https://static.divine-pride.net/images/items/item/25723.png');
}
.icon-external-sage {
    background-image: url('https://irowiki.org/images/db/item/1000103.png');
}
.icon-external-prayer {
    background-image: url('https://irowiki.org/images/db/item/1000405.png');
}
.icon-external-issgard {
    background-image: url('https://irowiki.org/images/db/item/1000608.png');
}
.icon-external-immortal {
    background-image: url('https://muhro.eu/flux/data/items/icons/1001217.png');
}

/* Adjustments for images that are still wikitext (File:) */
.nav-icon File { /* Targeting the image element itself */    width: 24px;    height: 24px;    /* Other styling if needed */}