/* Bob Loblaw's Mahjong Blog - Stylesheet */
/* Template: "None" (modified slightly) */
/* If you're reading this, you're probably stealing my design. */

body {
    background-color: #000000;
    color: #cccccc;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

a {
    color: #9999ff;
    text-decoration: underline;
}

a:visited {
    color: #7777cc;
}

a:hover {
    color: #ff9999;
}

/* Layout */
#page-wrapper {
    width: 720px;
    margin: 0 auto;
    padding: 10px 0;
}

/* Header */
#header {
    border-bottom: 1px dotted #666666;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#header h1 {
    font-family: "Times New Roman", Times, Georgia, serif;
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    padding: 5px 0;
    letter-spacing: 1px;
}

#header .description {
    font-size: 10px;
    color: #999999;
    font-style: italic;
    margin: 2px 0 0 0;
}

/* Main content area */
#content-wrapper {
    display: flex;
    gap: 20px;
}

#main {
    flex: 1;
    min-width: 0;
}

#sidebar {
    width: 180px;
    flex-shrink: 0;
}

/* Sidebar sections */
.sidebar-section {
    border: 1px dotted #555555;
    padding: 8px;
    margin-bottom: 12px;
}

.sidebar-section h2 {
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 6px 0;
    padding-bottom: 4px;
    border-bottom: 1px dotted #555555;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section li {
    padding: 2px 0;
    font-size: 10px;
}

.sidebar-section li a {
    text-decoration: none;
}

.sidebar-section li a:hover {
    text-decoration: underline;
}

/* Blog posts */
.post {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #444444;
}

.post h3 {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.post h3 a {
    color: #ffffff;
    text-decoration: none;
}

.post h3 a:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 9px;
    color: #777777;
    margin-bottom: 8px;
}

.post-meta a {
    color: #777777;
}

.post-body {
    font-size: 11px;
    line-height: 1.6;
    color: #cccccc;
}

.post-body p {
    margin: 6px 0;
}

.post-footer {
    font-size: 9px;
    color: #777777;
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px dotted #333333;
}

.post-footer a {
    color: #777777;
}

/* Article page */
#article-content {
    padding: 10px 0;
}

#article-content h2 {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 3px 0;
    font-family: "Times New Roman", Times, Georgia, serif;
}

.article-meta {
    font-size: 9px;
    color: #777777;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #444444;
}

.article-body {
    font-size: 11px;
    line-height: 1.7;
    color: #cccccc;
}

.article-body p {
    margin: 8px 0;
}

.article-body h3 {
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    margin: 15px 0 5px 0;
}

.article-body blockquote {
    border-left: 2px dotted #666666;
    margin: 10px 0;
    padding: 5px 12px;
    color: #999999;
    font-style: italic;
}

.article-body ul, .article-body ol {
    margin: 6px 0;
    padding-left: 20px;
}

.article-body li {
    margin: 3px 0;
}

.article-body em {
    color: #dddddd;
}

.article-body strong {
    color: #ffffff;
}

.article-nav {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dotted #444444;
    font-size: 10px;
    color: #777777;
}

.article-nav a {
    color: #9999ff;
}

.comments-notice {
    margin-top: 25px;
    padding: 8px;
    border: 1px dotted #555555;
    font-size: 10px;
    color: #999999;
    text-align: center;
}

/* Footer */
#footer {
    border-top: 1px dotted #666666;
    padding-top: 10px;
    margin-top: 20px;
    font-size: 9px;
    color: #666666;
    text-align: center;
}

#footer a {
    color: #666666;
}

/* Hit counter */
#hit-counter {
    text-align: center;
    margin: 8px 0;
    font-size: 9px;
    color: #666666;
}

#hit-counter img {
    vertical-align: middle;
}

.hit-digits {
    font-family: "Courier New", Courier, monospace;
    background-color: #111111;
    border: 1px solid #444444;
    padding: 2px 6px;
    letter-spacing: 2px;
    font-size: 10px;
    color: #00cc00;
}

/* Marquee styling */
.marquee-wrapper {
    border-top: 1px dotted #444444;
    border-bottom: 1px dotted #444444;
    padding: 4px 0;
    margin-bottom: 12px;
    overflow: hidden;
}

.marquee-text {
    color: #ffcc00;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
    animation: marquee-scroll 14s linear infinite;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Profile photo placeholder */
.profile-photo {
    width: 80px;
    height: 80px;
    border: 1px solid #555555;
    background-color: #222222;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #666666;
}

/* Badge */
.badge {
    display: inline-block;
    border: 1px solid #555555;
    padding: 3px 6px;
    font-size: 8px;
    color: #999999;
    margin: 4px 0;
    text-align: center;
}

/* Archive list */
.archive-list li {
    font-size: 10px;
    padding: 1px 0;
}

.archive-count {
    color: #666666;
}

/* Tag cloud (very 2004) */
.tag-cloud {
    font-size: 9px;
    line-height: 1.8;
}

.tag-cloud a {
    margin: 0 2px;
    text-decoration: none;
}

.tag-cloud .tag-sm { font-size: 8px; color: #888888; }
.tag-cloud .tag-md { font-size: 10px; color: #aaaaaa; }
.tag-cloud .tag-lg { font-size: 12px; color: #cccccc; }
.tag-cloud .tag-xl { font-size: 14px; color: #ffffff; }

/* RSS "button" */
.rss-link {
    display: inline-block;
    background-color: #ee8800;
    color: #ffffff;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 5px;
    text-decoration: none;
    border-radius: 2px;
}

/* For the "powered by" logos row */
.powered-by {
    text-align: center;
    margin: 6px 0;
}

.powered-by span {
    display: inline-block;
    font-size: 9px;
    color: #555555;
    margin: 0 4px;
}

/* IE6 notice */
.ie-notice {
    text-align: center;
    font-size: 8px;
    color: #444444;
    margin-top: 6px;
}

/* ============================================ */
/* Featured Resource (very 2004)             */
/* ============================================ */

.resource-label {
    font-size: 8px;
    color: #555555;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* Sidebar featured resource */
.featured-resource {
    border: 2px solid #cc3300;
    background-color: #1a0a00;
    background-image: linear-gradient(180deg, #1a0a00 0%, #0d0500 100%);
    padding: 0;
    margin-bottom: 12px;
    text-align: center;
    overflow: hidden;
}

.featured-resource-body {
    padding: 8px 6px;
}

.featured-resource .tile-marker {
    display: inline-block;
    background-color: #cc3300;
    color: #ffcc00;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    animation: tile-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes tile-pulse {
    0%   { opacity: 0.8; }
    100% { opacity: 1.0; }
}

.featured-resource .tile-heading {
    font-family: Verdana, Geneva, Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #ffcc00;
    line-height: 1.3;
    margin: 4px 0;
}

.featured-resource .tile-heading .amp {
    color: #ff6633;
}

.featured-resource .tile-subtext {
    font-size: 10px;
    color: #ddaa66;
    margin: 6px 0;
    font-style: italic;
    line-height: 1.4;
}

.featured-resource .tile-bullets {
    text-align: left;
    padding-left: 12px;
    margin: 6px 0;
    font-size: 9px;
    color: #ccaa77;
    line-height: 1.7;
}

.featured-resource .tile-bullets li {
    list-style-type: "\2713 ";
}

.featured-resource .tile-action {
    display: inline-block;
    background-color: #cc3300;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    border: 1px solid #ff6633;
    transition: background-color 0.2s;
}

.featured-resource .tile-action:hover {
    background-color: #dd4411;
    color: #ffffff;
}

.featured-resource .tile-quote {
    font-size: 8px;
    color: #776644;
    margin-top: 8px;
    font-style: italic;
    padding-top: 6px;
    border-top: 1px dotted #332200;
}

/* Featured tile interstitial */
.featured-tile {
    border: 2px solid #cc3300;
    background-color: #1a0a00;
    background-image: linear-gradient(90deg, #1a0a00 0%, #0d0500 30%, #1a0a00 50%, #0d0500 70%, #1a0a00 100%);
    padding: 10px 14px;
    margin: 20px 0;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 14px;
}

.featured-tile .tile-marker {
    display: inline-block;
    background-color: #cc3300;
    color: #ffcc00;
    font-size: 8px;
    font-weight: bold;
    padding: 4px 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    transform: rotate(-3deg);
}

.featured-tile .tile-body {
    flex: 1;
    text-align: left;
}

.featured-tile .tile-heading {
    font-family: Verdana, Geneva, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #ffcc00;
}

.featured-tile .tile-subtext {
    font-size: 10px;
    color: #ddaa66;
    margin-top: 3px;
}

.featured-tile .tile-action {
    display: inline-block;
    background-color: #cc3300;
    color: #ffffff;
    font-size: 9px;
    font-weight: bold;
    padding: 4px 12px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid #ff6633;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.featured-tile .tile-action:hover {
    background-color: #dd4411;
    color: #ffffff;
}

/* Footer credits line */
.footer-credits {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dotted #333333;
    font-size: 9px;
    color: #555555;
}

.footer-credits a {
    color: #997744;
    font-weight: bold;
}

.footer-credits a:hover {
    color: #cc9944;
}
