/* ============================================================
   110s Digital Studio — Public Page Styles
   v7.0.0

   Extends style.css for dynamic public pages.
   All colours via CSS variables — dark mode automatic.
   ============================================================ */

/* ----------------------------------------------------------
   Gradient Text
   ---------------------------------------------------------- */
.ds-gradient-text {
    background: linear-gradient(90deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: ds-gradient-shift 10s ease infinite alternate;
}

@keyframes ds-gradient-shift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* ----------------------------------------------------------
   Section Standardisation
   ---------------------------------------------------------- */
.ds-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.ds-section-sub {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    color: var(--text-light);
    max-width: 520px;
}

.ds-section-header {
    margin-bottom: 2.5rem;
}

.ds-section-header.text-center .ds-section-sub {
    margin: 0 auto;
}

.ds-section-spacing {
    padding: 4rem 0;
}

/* ----------------------------------------------------------
   Page Hero (reuse hero typography)
   ---------------------------------------------------------- */
.ds-page-hero {
    padding: 8rem 0 3rem;
    text-align: center;
}

.ds-page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.ds-page-hero-sm {
    padding: 7rem 0 2rem;
}

.ds-page-hero-sm h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.hero-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

.ds-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.25s ease;
}

.ds-back-link:hover {
    color: var(--accent);
}

/* ----------------------------------------------------------
   Sections
   ---------------------------------------------------------- */
.ds-section {
    padding: 2rem 0 5rem;
}

/* ----------------------------------------------------------
   Service Cards
   ---------------------------------------------------------- */
.ds-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.35s cubic-bezier(.4,0,.2,1),
                transform 0.35s cubic-bezier(.4,0,.2,1);
    height: 100%;
    background: transparent;
}

.ds-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    color: var(--text);
}

.ds-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(249, 174, 0, 0.08);
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    transition: background 0.35s ease;
}

.ds-card:hover .ds-card-icon {
    background: rgba(249, 174, 0, 0.14);
}

.ds-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.ds-card-text {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex: 1;
}

.ds-card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.3s cubic-bezier(.4,0,.2,1);
    margin-top: auto;
}

.ds-card:hover .ds-card-link,
.ds-card-link:hover {
    gap: 0.55rem;
}

/* ----------------------------------------------------------
   Blog Post List
   ---------------------------------------------------------- */
.ds-post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ds-post-card {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.ds-post-card:last-child {
    border-bottom: none;
}

.ds-post-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
}

.ds-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}

.ds-post-card:hover .ds-post-thumb img {
    transform: scale(1.04);
}

.ds-post-body {
    flex: 1;
    min-width: 0;
}

.ds-post-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ds-meta-sep {
    opacity: 0.4;
}

.ds-post-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.ds-post-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.25s ease;
}

.ds-post-title a:hover {
    color: var(--accent);
}

.ds-post-excerpt {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* ----------------------------------------------------------
   Article / Content Body
   ---------------------------------------------------------- */
.ds-article {
    max-width: 720px;
    margin: 0 auto;
}

.ds-article-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.ds-article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ds-content-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
}

/* ----------------------------------------------------------
   Portfolio Project Cards
   ---------------------------------------------------------- */
.ds-project-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.35s cubic-bezier(.4,0,.2,1),
                transform 0.35s cubic-bezier(.4,0,.2,1);
    height: 100%;
    background: transparent;
}

.ds-project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    color: var(--text);
}

.ds-project-thumb {
    position: relative;
    height: 200px;
    background: var(--border);
    overflow: hidden;
}

.ds-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}

.ds-project-card:hover .ds-project-thumb img {
    transform: scale(1.04);
}

.ds-project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2rem;
    color: var(--text-light);
    opacity: 0.3;
}

.ds-project-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--accent);
    color: #212529;
    border-radius: 3px;
}

.ds-project-info {
    padding: 1.25rem;
}

.ds-project-info h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.ds-project-info p {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* ----------------------------------------------------------
   Public Pagination
   ---------------------------------------------------------- */
.ds-pub-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 3rem;
}

.ds-pub-pagination .ds-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.ds-pub-pagination .ds-page-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.ds-pub-pagination .ds-page-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #212529;
    font-weight: 600;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 767.98px) {
    .ds-post-card {
        flex-direction: column;
    }

    .ds-post-thumb {
        width: 100%;
        height: 180px;
    }
}

/* ----------------------------------------------------------
   Dark Mode — Public Overrides
   ---------------------------------------------------------- */
[data-theme="dark"] .ds-gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: ds-gradient-shift 10s ease infinite alternate;
}

[data-theme="dark"] .ds-card {
    border-color: var(--border);
}

[data-theme="dark"] .ds-card:hover {
    border-color: var(--accent);
}

[data-theme="dark"] .ds-card-icon {
    background: rgba(249, 174, 0, 0.1);
}

[data-theme="dark"] .ds-project-card {
    border-color: var(--border);
}

[data-theme="dark"] .ds-project-card:hover {
    border-color: var(--accent);
}

[data-theme="dark"] .ds-project-thumb {
    background: #1a1a1a;
}

[data-theme="dark"] .ds-post-card {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .ds-pub-pagination .ds-page-link.active {
    color: #212529;
}
