@font-face {
    font-family: "tddr-icons";
    src: local('tddr-icons'),
        url("../fonts/tddr-icons.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "HamburgSymbols";
    src: local('HamburgSymbols'),
        url("../fonts/HamburgSymbols.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

[class^="tddr-icon-"],
[class*=" tddr-icon-"] {
    color: #cf000f;
    font-family: "tddr-icons" !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    line-height: 1;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tddr-icon-aries::before {
    content: "\e90b";
}

.tddr-icon-taurus::before {
    content: "\e909";
    color: #00d717;
}

.tddr-icon-gemini::before {
    content: "\e90a";
    color: #f5ab35;
}

.tddr-icon-cancer::before {
    content: "\e908";
    color: #4169e1;
}

.tddr-icon-leo::before {
    content: "\e907";
}

.tddr-icon-virgo::before {
    content: "\e906";
    color: #00d717;
}

.tddr-icon-libra::before {
    content: "\e905";
    color: #f5ab35;
}

.tddr-icon-scorpio::before {
    content: "\e904";
    color: #4169e1;
}

.tddr-icon-sagittarius::before {
    content: "\e903";
}

.tddr-icon-capricorn::before {
    content: "\e902";
    color: #00d717;
}

.tddr-icon-aquarius::before {
    content: "\e901";
    color: #f5ab35;
}

.tddr-icon-pisces::before {
    content: "\e900";
    color: #4169e1;
}

[class^="tddr-planet-"]::before,
[class*=" tddr-planet-"]::before {
    font-family: "HamburgSymbols" !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    line-height: 1;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tddr-planet-sun::before {
    content: "Q";
}

.tddr-planet-moon::before {
    content: "W";
}

.tddr-planet-mercury::before {
    content: "E";
}

.tddr-planet-venus::before {
    content: "R";
}

.tddr-planet-mars::before {
    content: "T";
}

.tddr-planet-jupiter::before {
    content: "Y";
}

.tddr-planet-saturn::before {
    content: "U";
}

.tddr-planet-uranus::before {
    content: "I";
}

.tddr-planet-neptune::before {
    content: "O";
}

.tddr-planet-pluto::before {
    content: "P";
}

.tddr-planet-chiron::before {
    content: "M";
}

.tddr-planet-lilith::before {
    content: "`";
}

.tddr-planet-nn::before {
    content: "\2039";
}

.tddr-current-sky-widget {
    background-color: transparent;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    border: none;
    box-shadow: none;
    max-width: 100%;
    margin: 0;
}

.tddr-current-sky-detail-link {
    align-items: center;
    border-bottom: 1px solid rgba(45, 95, 138, .25);
    color: #2d5f8a;
    display: flex;
    font-size: .9rem;
    font-weight: 700;
    justify-content: space-between;
    margin: 6px 22px 18px;
    padding: 13px 0;
    text-decoration: none;
}

.tddr-current-sky-detail-link::after { content: "→"; font-size: 1.15rem; }
.tddr-current-sky-detail-link:hover,
.tddr-current-sky-detail-link:focus-visible { color: #173e62; }

.tddr-current-sky-widget .tddr-planet-subname {
    display: block;
    color: #888;
    font-size: 0.8em;
    line-height: 1;
}

.tddr-current-sky-widget .tddr-widget-datetime {
    margin: 0 0 15px;
    color: #888;
    font-size: 0.9em;
    text-align: center;
}

.tddr-current-sky-widget .tddr-moon-phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
    font-size: 1em;
    font-weight: 500;
}

.tddr-current-sky-widget .tddr-moon-icon {
    font-size: 3em;
    line-height: 1;
}

.tddr-current-sky-widget .tddr-moon-details {
    margin-top: 10px;
}

.tddr-current-sky-widget .tddr-moon-angle {
    margin-left: 5px;
    color: #777;
    font-size: 0.8em;
    font-weight: 400;
}

.tddr-current-sky-widget .tddr-planet-list {
    margin: 0 0 15px;
    padding: 0;
    list-style: none;
}

.tddr-current-sky-widget .tddr-planet-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tddr-current-sky-widget .tddr-planet-row:last-child {
    border-bottom: none;
}

.tddr-current-sky-widget .tddr-planet-glyph-name {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
}

.tddr-current-sky-widget .legend-glyph {
    width: 25px;
    margin-right: 8px;
    font-size: 1.4em;
    text-align: center;
}

.tddr-current-sky-widget .tddr-planet-position {
    margin-top: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

.tddr-current-sky-widget .tddr-sign-abbr {
    padding-left: 5px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.tddr-current-sky-widget .tddr-planet-retrograde {
    display: inline-block;
    margin-left: 4px;
    color: #e74c3c;
    font-weight: bold;
}

.tddr-current-sky-widget .tddr-widget-subtext,
.tddr-current-sky-widget .tddr-next-ingress {
    margin: 5px 0 0;
    padding: 0;
    color: #6c6c6c;
    font-size: 0.85em;
    font-style: italic;
    text-align: center;
}

.tddr-current-sky-widget .tddr-moon-voc {
    margin-top: 8px !important;
    padding: 6px 10px;
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 6px;
    font-style: normal !important;
    font-weight: 600 !important;
}

.tddr-current-sky-widget .tddr-moon-in-course {
    margin-top: 8px !important;
    padding: 6px 10px;
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    font-style: normal !important;
    font-weight: 600 !important;
}

.tddr-current-sky-widget .tddr-mercury-retro {
    margin-top: 10px !important;
    padding: 8px 12px;
    color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    font-style: normal !important;
    font-weight: 600 !important;
}

.tddr-current-sky-widget .tddr-next-ingress {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.tddr-current-sky-widget .tddr-chart-drawing img {
    max-width: 100%;
    height: auto;
    margin-top: 15px;
}

@media (hover: hover) and (pointer: fine) {
    .tddr-current-sky-widget .tddr-chart-drawing img {
        transition: transform 0.3s ease;
    }

    .tddr-current-sky-widget .tddr-chart-drawing img:hover {
        z-index: 20;
        transform: scale(1.25);
    }
}

.tddr-cs-placeholder {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    max-width: 450px;
    margin: 1em auto;
    padding: 20px 16px 18px;
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tddr-skeleton {
    display: grid;
    gap: 14px;
    padding: 0;
}

.tddr-skeleton-sky {
    padding: 0;
}

.tddr-skel-block {
    position: relative;
    overflow: hidden;
    background: #eef1f4;
    border-radius: 10px;
}

.tddr-skel-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
    transform: translateX(-100%);
    animation: tddr-skeleton-shimmer 1.35s ease-in-out infinite;
}

.tddr-skel-datetime {
    width: 72%;
    height: 16px;
    margin: 0 auto 4px;
    border-radius: 999px;
}

.tddr-skel-moon-panel {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.tddr-skel-moon-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.tddr-skel-moon-title {
    width: 54%;
    height: 18px;
}

.tddr-skel-moon-subtitle {
    width: 42%;
    height: 14px;
    border-radius: 999px;
}

.tddr-skel-status-card {
    width: 100%;
    height: 72px;
    border-radius: 12px;
}

.tddr-skel-next-ingress {
    width: 48%;
    height: 14px;
    border-radius: 999px;
}

.tddr-skel-planet-list {
    display: grid;
    gap: 0;
}

.tddr-skel-planet-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tddr-skel-planet-row:last-child {
    border-bottom: none;
}

.tddr-skel-planet-name {
    width: 84%;
    height: 18px;
}

.tddr-skel-planet-position {
    width: 92%;
    height: 16px;
    justify-self: end;
}

.tddr-skel-planet-sign {
    width: 70%;
    height: 16px;
}

.tddr-skel-mercury {
    width: 100%;
    height: 76px;
    margin-top: 4px;
    border-radius: 12px;
}

.tddr-skel-chart {
    width: min(100%, 320px);
    margin-top: 6px;
    border-radius: 50%;
    aspect-ratio: 1;
    justify-self: center;
}

@keyframes tddr-skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.tddr-personal-cta {
    padding: 20px;
    color: #495057;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
}

.tddr-personal-cta h4 {
    margin: 0 0 12px;
    color: #495057;
    font-weight: 600;
}

.tddr-cta-button {
    display: inline-block;
    padding: 8px 22px;
    color: #fff;
    background: #355d85;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tddr-cta-button:hover,
.tddr-cta-button:focus-visible {
    color: #fff;
    background: #005a87;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
    text-decoration: none;
    transform: translateY(-1px);
}

.tddr-current-sky-error {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 28px 18px;
    text-align: center;
}

.tddr-current-sky-error p {
    margin: 0;
    color: #495057;
}

.tddr-current-sky-retry {
    border: 0;
    border-radius: 6px;
    padding: 10px 18px;
    background: #355d85;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.tddr-current-sky-retry:hover,
.tddr-current-sky-retry:focus-visible {
    background: #274b70;
    outline: 2px solid #8bb8e8;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .tddr-skel-block::after {
        animation: none;
        transform: none;
    }

    .tddr-current-sky-widget .tddr-chart-drawing img,
    .tddr-cta-button {
        transition: none;
        transform: none;
    }
}
