/*
Theme Name: INK Author Association
Theme URI: https://inkassociation.org
Author: INK Author Association
Author URI: https://inkassociation.org
Description: A refined, literary theme for the INK Author Association — a global fellowship of writers, poets, and artists united by love, peace, and human brotherhood. Features classical typography (Cormorant Garamond / Inter / Amiri), an ink-and-gold palette, multilingual support (Arabic & English), and a contemplative Sufi-inspired aesthetic.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ink-association
Tags: one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, blog, news, photography, portfolio
*/

/* =========================================
   INK WORDPRESS THEME — BASE STYLES
   (Tailwind is loaded via CDN in functions.php;
    these are WP-specific overrides.)
   ========================================= */

:root {
  --ink-950: #0a0e1a;
  --ink-900: #0f1629;
  --ink-800: #161f38;
  --ink-700: #1e2a4a;
  --ink-600: #2d3d66;
  --ink-500: #4a5a80;
  --gold-400: #d4a956;
  --gold-500: #c49540;
  --gold-600: #a87b2e;
  --gold-300: #e3c07a;
  --gold-200: #efd9a8;
  --gold-100: #f7ecd1;
  --cream-50: #fdfaf3;
  --cream-100: #f8f1df;
  --sand-500: #9a7d4e;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #fdfaf3;
  color: #0f1629;
  margin: 0;
  overflow-x: hidden;
}

.font-serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-arabic { font-family: 'Amiri', serif; }

/* Links in post content */
.entry-content a {
  color: #a87b2e;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover { color: #c49540; }

.entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: 'Cormorant Garamond', serif;
  color: #0f1629;
}

/* WordPress default classes */
.wp-block-image img { border-radius: 12px; height: auto; }
.aligncenter { text-align: center; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* Admin bar adjustment */
body.admin-bar .fixed-top { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .fixed-top { top: 46px; }
}

/* Gold gradient utilities (also provided by Tailwind) */
.gold-gradient { background: linear-gradient(135deg, #d4a956 0%, #e3c07a 50%, #c49540 100%); }
.gold-text-gradient {
  background: linear-gradient(135deg, #c49540 0%, #d4a956 50%, #e3c07a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Divider ornament */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.divider-ornament::before,
.divider-ornament::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, #d4a956, transparent);
}

/* Paper texture */
.paper-texture {
  background-color: #fdfaf3;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(168, 123, 46, 0.015) 2px, rgba(168, 123, 46, 0.015) 4px);
}

/* Subtle animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-bounce-slow { animation: bounce 3s ease-in-out infinite; }

/* Selection */
::selection { background: #d4a956; color: #0a0e1a; }

/* Dropdown menu support for WordPress */
.nav-menu .menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 0.75em;
  opacity: 0.7;
}
.nav-menu ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fdfaf3;
  min-width: 220px;
  padding: 0.5rem 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(10,14,26,0.12);
  border: 1px solid rgba(212, 169, 86, 0.25);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 50;
}
.nav-menu li:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu ul.sub-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: #0f1629;
  font-size: 0.875rem;
  white-space: nowrap;
}
.nav-menu ul.sub-menu li a:hover {
  background: rgba(212, 169, 86, 0.12);
  color: #a87b2e;
}

/* Mobile menu open state */
[data-mobile-menu].open { display: block !important; }
@media (min-width: 1024px) {
  [data-mobile-menu].open { display: none !important; }
}

/* Navbar scroll state */
[data-navbar].scrolled {
  background: rgba(253, 250, 243, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(212, 169, 86, 0.25);
  top: 0 !important;
}
[data-navbar].scrolled .logo-text { color: #0f1629 !important; }
[data-navbar].scrolled .logo-sub { color: #a87b2e !important; }
[data-navbar].scrolled nav ul.nav-menu > li > a { color: #161f38 !important; }
[data-navbar].scrolled nav ul.nav-menu > li > a:hover { color: #a87b2e !important; }
[data-navbar].scrolled button[data-mobile-toggle] { color: #0f1629 !important; }

/* Comments */
.comment-list { list-style: none; padding-left: 0; }
.comment-list .comment { margin-bottom: 1.5rem; padding: 1.5rem; background: #fff; border-radius: 14px; border: 1px solid rgba(212,169,86,0.2); }
.comment-meta { font-size: 0.875rem; color: #4a5a80; margin-bottom: 0.5rem; }
.comment-author { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.25rem; color: #0f1629; }

/* Pagination */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  margin: 0 0.15rem;
  border-radius: 999px;
  border: 1px solid rgba(212,169,86,0.3);
  color: #0f1629;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}
.page-numbers.current,
.page-numbers:hover { background: linear-gradient(135deg, #d4a956, #c49540); color: #0a0e1a; border-color: transparent; }
