/* =========================
   GENERALNO
========================= */

* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #0f172a;
}

body {
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}


/* =========================
   VSE STRANI
========================= */

/* header */
.ai-header {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.ai-title-btn {
    font-size: 48px;
    font-weight: bold;
    color: white;
    padding: 10px 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.ai-title-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* navbar */
.nav-bar {
    display: flex;
    height: 60px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* main layout */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 30px;
}

.page-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 35px;
    color: white;
}

/* footer */
.site-footer {
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    color: white;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    margin-top: auto;
}

.site-footer h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.site-footer p {
    margin: 5px 0;
}

.site-footer .socials a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: 0.3s;
}

.site-footer .socials a:hover {
    text-decoration: underline;
}


/* =========================
   INDEX.HTML
========================= */

.section {
    position: relative;
    height: 1000px;
    overflow: hidden;
}

.bg-blur {
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 1000px;
    background: url("4k_ozadje.jpeg") center/cover no-repeat;
    z-index: 1;
}

.stack {
    position: relative;
    z-index: 2;
    height: 100%;
}

.stack img {
    position: absolute;
    width: 250px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.img1 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.img2 {
    bottom: 60px;
    left: calc(50% + 50px);
    transform: rotate(8deg);
    z-index: 2;
}

.img3 {
    bottom: 100px;
    left: calc(50% - 250px);
    transform: rotate(-8deg);
    z-index: 1;
}

.user-box {
    position: absolute;
    bottom: 450px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.4), rgba(0, 242, 254, 0.6));
    border-radius: 12px;
    text-align: center;
    z-index: 4;
    font-size: 20px;
    color: white;
    font-weight: bold;
}


/* =========================
   PROMPTI.HTML
========================= */

.prompt-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.prompt-content {
    flex: 1;
    min-width: 0;
}

.prompt-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.prompt-text {
    margin-right: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.copy-btn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

.copy-btn.copied {
    background: #22c55e;
}


/* =========================
   ORODJA.HTML
========================= */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #1e293b;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s, box-shadow 0.25s;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.tool-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 8px;
    flex-shrink: 0;
}

.tool-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tool-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
}

.tool-link {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.tool-link:hover {
    color: white;
}


/* =========================
   TUTORIALS.HTML
========================= */

.section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
}

.featured-video-card {
    background: #1e293b;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 45px;
}

.tutorial-author {
    font-size: 14px;
    font-weight: bold;
    color: #7dd3fc;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.tutorial-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 18px;
    color: white;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #0b1120;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.tutorial-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s, box-shadow 0.25s;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.tutorial-link {
    display: inline-block;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 16px;
    border-radius: 10px;
    transition: 0.2s;
}

.tutorial-link:hover {
    transform: scale(1.04);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {
    .ai-title-btn {
        font-size: 34px;
    }

    .container {
        padding: 30px 18px;
    }

    .tool-card,
    .prompt-card {
        flex-direction: column;
        text-align: center;
    }

    .tool-image {
        width: 90px;
        height: 90px;
    }

    .tutorial-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 24px;
    }
}
